Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cat <<- EOF > users.csv
- email,first name,last name,role
- [email protected],Anna,Smith,Developer
- [email protected],John,Doe,Security
- [email protected],Jane,Doe,Security
- [email protected],Mark,Linn,IT Manager
- [email protected],Linda,Goldstein,IT Manager
- [email protected],Frank,Green,Developer
- [email protected],Sandra,Bowers,Director
- EOF
- awk -F"," 'NR!=1{print $4}' users.csv | grep -i "manager" | wc -l
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement