Because i just had a reason to re-visit and uhm, finally publish a weirdo but helpful #bash
, which easily predates newer #linux
tools like #psgrep
and so on.
Let me share it here, just for everyone interested.https://pastebin.com/k23QTCiA
# Based on something i learned from A. Spohr way back in the mid 1990ies.
# Recreated and refined to a useful oneliner in IRCNet in #linux.de in
# the first decade of 2k. ;)
/bin/ps xau | /bin/grep COMMAND\\\|$1 | /bin/grep -v grep
It's idea actually predates the invention of the modern
command, but in retrospect really nicely complements it imho. ;)
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.pastebin.com