Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. who | grep .188\\.146\\.163 | grep -v jakubo | cut -f1 -d " "| sort | while read login
  4. do
  5.     grep -a ^$login:  /etc/passwd | cut -f5 -d:
  6.     grep -a ^$login:  /etc/passwd | cut -f5 -d: |
  7.    
  8. while read login
  9. do
  10.     ps | wc -l
  11. done
  12. done | uniq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement