#psgrep

hackbyte@pluspora.com

Because i just had a reason to re-visit and uhm, finally publish a weirdo but helpful #bash #oneliner, which easily predates newer #linux tools like #psgrep and so on.

Let me share it here, just for everyone interested.

https://pastebin.com/k23QTCiA

psg () 
{ 
    # 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 psgrep command, but in retrospect really nicely complements it imho. ;)

#shell #psg #opensource