Categories
How to count the number of active sessions?
It is necessary to count the number of active user sessions whose names end with the letters "r,x,z". Tell me please
Answer the question
In order to leave comments, you need to log in
w |tail -n +3|awk '{print $1}'|grep 'r$\|x$\|z$'|wc -l
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question