my problem I have to write on a single line a command to launch a script only if the number of users on the system is less than ten.
This is what I have so far.
grep | who "* < 10 " $Users-on
I always get confused about quotes and brackets
hotlantas69
0
Newbie Poster
Recommended Answers
Jump to PostHello,
Grep is a filter, meaning that you have to send something to grep before grep can do anything. For example:
ps -aux | grep kc0arf
on a *nix machine will list out all of the processes that have kc0arf on the output of the ps command.
…
All 3 Replies
kc0arf
68
Posting Virtuoso
Team Colleague
alc6379
120
Cookie... That's it
Team Colleague
profhof
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.