[wplug] quick grep question

Russ Schneider russ at sugapablo.com
Sun Sep 14 18:36:51 EDT 2003


Does grep have any OR or AND capabilities?

I'd like to grep a file for lines that don't begin with certain strings.

I can easily grep for a line that doesn't start with one string:
grep -v "^string" /path/to/filename

But can I do the same in one command, searching for each line that 
doesn't begin with "string" or "string2" or "string3"?

-- 
Russ Schneider (a.k.a. Sugapablo)
http://www.sugapablo.com




More information about the wplug mailing list