starla0316
Programmer
Hi!
I am trying to do a grep for one of our processes, but would like to know how not to include the command itself.
Ex. ps -ef|grep process
psoftfs 3164 1 4 03:46:45 ? 0:41 ./process INFILE=/directory/process
psoftfs 23269 8530 0 22:20:44 pts/5 0:00 grep process
As you can see, it returns both the output, and the command I issued. I am only interested in getting the particular process.
Also what would be the best command to count for the number of processes running (excluding the grep command itself).
thanks!
I am trying to do a grep for one of our processes, but would like to know how not to include the command itself.
Ex. ps -ef|grep process
psoftfs 3164 1 4 03:46:45 ? 0:41 ./process INFILE=/directory/process
psoftfs 23269 8530 0 22:20:44 pts/5 0:00 grep process
As you can see, it returns both the output, and the command I issued. I am only interested in getting the particular process.
Also what would be the best command to count for the number of processes running (excluding the grep command itself).
thanks!