Guest User

Untitled

a guest
Apr 20th, 2018
84
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. if [ $# -eq 1 ]
  3. then
  4.   if id "$1" > 0
  5.     then
  6.       last -R|grep -w "$1"|awk '{print $1, $3, $4, $5}'|uniq -c
  7.       fi
  8. elif [ $# -eq 0 ]; then
  9. echo "Wprowadzono zbyt malo parametrow"
  10. else
  11. echo "Wprowadzono zbyt duzo parametrow"
  12. fi
Add Comment
Please, Sign In to add comment