jerrygarciuh
jerrygarciuh

Reputation: 21988

Specify more than one argument to grep -v

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

Answers (1)

nicky_zs
nicky_zs

Reputation: 3773

find /home/foo/bar.com/ -mmin -12 | grep -v 'error_log\|baz'

Upvotes: 2

Related Questions