Monday, June 10, 2013

Shell - Remove grep itself from grep's output

When grepping something you usually see the grep itselft:



 to remove grep from the grep's output:

$ sudo ps aux | grep mysql | grep -v grep