Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/bin/sh
  2. clear
  3.  
  4. test $# -ne 0 || exit 255
  5.  
  6. for i in $@
  7. do
  8. #Laikinas failas
  9. eval who | grep $i | awk '{print $2}' > tty.txt
  10.  
  11. tarp=`head -n 1 tty.txt`
  12. echo $tarp
  13. tail -n +2 "$tty.txt" | sponge "$tty.txt"
  14. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement