Advertisement
Guest User

Untitled

a guest
May 27th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.62 KB | None | 0 0
  1. nameList ()
  2. {
  3.  cat emplist | cut -c5-19 | grep $name
  4. }
  5. targList ()
  6. {
  7.  cat emplist | grep $name | cut -c44-58
  8. }
  9. teamList ()
  10. {
  11.  cat emplist | grep $name | cut -c31-44
  12. }
  13.  
  14.  
  15. echo "Please enter the player name."
  16. read name
  17. while echo "Would you like to see the target, (T/t) or team name (M/m)?"
  18. read ans
  19. [ $ans != 'ZZZ' ]
  20. do
  21.  if [[ $ans = [tT] ]]; then
  22.   nameList > names_only
  23.   targList > targets_only
  24.   paste names_only targets_only
  25.  elif [[ $ans = [mM] ]]; then
  26.   nameList > names_only
  27.   teamList > teams_only
  28.   paste names_only teams_only
  29.  else
  30.   echo "$0: Please enter a target or team name."
  31.  fi
  32. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement