Guest User

Untitled

a guest
Mar 21st, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ $# -lt 2 ]; then
  4. echo "Usage: $0 fieldname pbservice.stdout"
  5. echo "Returns the value associated with fieldname in stdout."
  6. exit 1
  7. fi
  8.  
  9. grep $1 $2 | tr -s ' ' | cut -d' ' -f3
Add Comment
Please, Sign In to add comment