Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nameList ()
- {
- cat emplist | cut -c5-19 | grep $name
- }
- targList ()
- {
- cat emplist | grep $name | cut -c44-58
- }
- teamList ()
- {
- cat emplist | grep $name | cut -c31-43
- }
- echo "Please enter the player name."
- read name
- while echo "Would you like to see the target, (T/t) or team name (M/m)?"
- read ans
- [ $ans != 'ZZZ' ]
- do
- if [[ $ans = [tT] ]]; then
- nameList > names_only
- targList > target_only
- paste names_only target_only
- elif [[ $ans = [mM] ]]; then
- nameList > names_only
- teamList > team_only
- paste names_only team_only
- else
- echo "$0: Please enter a target or team name."
- fi
- done
- rm names_only team_only target_only
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement