Connecting Tech Pros Worldwide Help | Site Map

Invert return value of grep command?

Newbie
 
Join Date: Apr 2009
Posts: 4
#1: Apr 3 '09
If grep is successful it returns 0 - how can I change it so that it returns a value other than 0?

thank you
Expert
 
Join Date: Apr 2006
Posts: 512
#2: Apr 4 '09

re: Invert return value of grep command?


use the -v option of grep
Reply