Advertisement
Guest User

Untitled

a guest
Dec 20th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cat <<- EOF > users.csv
  4. email,first name,last name,role
  5. [email protected],Anna,Smith,Developer
  6. [email protected],John,Doe,Security
  7. [email protected],Jane,Doe,Security
  8. [email protected],Mark,Linn,IT Manager
  9. [email protected],Linda,Goldstein,IT Manager
  10. [email protected],Frank,Green,Developer
  11. [email protected],Sandra,Bowers,Director
  12. EOF
  13.  
  14. awk -F"," 'NR!=1{print $4}' users.csv | grep -i "manager" | wc -l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement