maelamrani
Member
Hello,
Who explain me what this command do :
grep -v grep
Kind regards,
Who explain me what this command do :
grep -v grep
Kind regards,
grep -v grep
is not going to do a lot.grep -v grep
is a pattern you might use in the middle of a series of piped commands.ps aux | grep bash
grep -v grep
like this:ps aux | grep bash | grep -v grep
ps aux | grep -v grep | grep bash
alias grep='grep --color=auto -n'
in your .bashrc. Then the 2nd version will leave the instances of "bash" highlighted/colourised in the final output because grep bash
was the last pattern in the piped sequence.grep -v grep
, which filters the results to exclude anything from the previous results that includes "grep". So there will be nothing to highlight!man grep
, or its info pages using info grep