SHARE
TWEET

So cw3

LazySenpai Nov 13th, 2019 (edited) 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. echo W systemie jest zalogowanych aktualnie `who | wc -l` aktualnie uzytkownikow
  2.  
  3. for x in `who | cut -f 1 -d" "`; do
  4.     if [ "` grep $x /etc/passwd | grep bash`" != ""  ]; then
  5.         list="$list $x,"
  6.     fi
  7. done
  8. echo $list
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top