Okay, so I'm learning Bash, and there's that exercise;
"Write a script that checks every ten seconds if the user 'user000' is logged in."
My idea is to grep
a who
, but I don't know how to incorporate this into a script. I tried things like
if [ `who | grep "user000"` ] then things
but it returns the matched lines with grep, not true/false.