5 ms·
Whats up with the "[f]" in your grep command? grep '[f]sck'
by dfc 7y ago
Whats up with the "[f]" in your grep command?
grep '[f]sck'
- geraldcombs 7y agoIt keeps the grep command itself from showing up in the output.
- linsomniac 7y agoOoh, that's very cute! I usually throw a "| grep -v grep" on the end, but I'm gonna try to remember this.
- JdeBP 7y agoBetter to remember pgrep, instead of an incremental change that you'll find still has problem cases (such as matching usernames). * http://mywiki.wooledge.org/ProcessManagement#But_I.27m_on_some_old_legacy_Unix_system_that_doesn.27t_have_pgrep.21__What_do_I_do.3F http://mywiki.wooledge.org/ProcessManagement#But_I.27m_on_so... M. Wooledge's description of ps options is not quite accurate, but that is incidental to xyr main point.