I'm looking for a script that would echo a list of # of users.
Such as "Currently 10 Users" or "Currently 1 User".
The difference is grammer. The (s) in user(s) whould only be there if there are 2 or more users.
I'm writing in SunOS 5.8 in the Korn Shell.
Any Thoughts.
Here is what I have so far;
echo There are $(who | wc -l) Users online (which is not correct)
Such as "Currently 10 Users" or "Currently 1 User".
The difference is grammer. The (s) in user(s) whould only be there if there are 2 or more users.
I'm writing in SunOS 5.8 in the Korn Shell.
Any Thoughts.
Here is what I have so far;
echo There are $(who | wc -l) Users online (which is not correct)