Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Ignore grep command self-match' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Ignore grep command self-match
Authored by: lar3ry on Aug 05, '05 10:24:16AM
Here's an easier way:

$ ps -acx | grep Dash

The "c" option tells ps to only show the command, not the command line arguments. Thus, the "grep" command would be listed as "grep" and not "grep Dash" -- This seems like an easier way.

(The "ps" command has nearly as many options as "ls")

[ Reply to This | # ]