Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- who | grep \(10\.1\.109 | cut -d " " -f 1 | while read login
- do
- cat /etc/passwd | grep -a ^$login | cut -d ":" -f 5
- cat /etc/passwd | grep -a ^$login | cut -d ":" -f 5 | cut -d " " -f 1 |
- {
- while read imie
- do
- cat /etc/passwd | cut -d ":" -f 5 | cut -d " " -f 1 |
- grep -a $imie | wc -l
- done
- }
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement