WHO
who | awk '{ print "user:",$1,"\tdevice:",$2 cnt = cnt + 1 } END { print cnt,"пользователи, вышедшие из системы"}'
who | while read NAME TTY TIME do echo "пользователь: $NAME tty: $TTY time: $TIME done
who | awk '{ print "user:",$1,"\tdevice:",$2 cnt = cnt + 1 } END { print cnt,"пользователи, вышедшие из системы"}'
who | while read NAME TTY TIME do echo "пользователь: $NAME tty: $TTY time: $TIME done