7 ms·
For manual use, I have a shell function psgrep () { ps aux | sed -n '1p;/\<sed\>/d;/'"$1"'/p' } It's basically the same "grep -v grep" trick, but with
by majewsky 9y ago
For manual use, I have a shell function
psgrep () {
ps aux | sed -n '1p;/\<sed\>/d;/'"$1"'/p'
}
It's basically the same "grep -v grep" trick, but with pure sed. Also, the initial "1p" ensures that I still get the column headers from ps.