grep -v for foo or bar
I've done a Google search and haven't found anything for this. I'm looking for a way to read a file excluding all lines containing either foo or bar. I know that grep -v foo file will give me all lines not containing foo, but I can't figure out how to grep the file for lines not containing foo or bar. I'm sure there's a way to do it, but I've been experimenting for the last hour and have come up with nothing.
|