[PLUG] shell script question

Paul Heinlein heinlein at madboa.com
Fri Aug 20 14:10:02 UTC 2004


On Fri, 20 Aug 2004, Wil Cooley wrote:

> Another option is to write them to a file and use -f (i.e., fgrep).

This is easily the most manageable solution, e.g.

$ cat badstrings.txt
^this stuff
unwanted.*string
[[:space:]][[:space:]]*$

$ grep -v -f badstrings.txt working-file.txt

--Paul Heinlein <heinlein at madboa.com>




More information about the PLUG mailing list