Reputation: 21988
How do I supply more than one string to ignore to grep's -v flag?
eg I want to ignore results from files names error_log and baz?
find /home/foo/bar.com/ -mmin -12 | grep -v error_log baz
Upvotes: 0
Views: 100
Reputation: 3773
find /home/foo/bar.com/ -mmin -12 | grep -v 'error_log\|baz'
Upvotes: 2