the care and feeding of fgrep
Andy Behrens
andyb at coat.com
Sat Nov 25 05:53:06 AEST 1989
In article <453 at nixba.UUCP> mike at nixba.UUCP (Mike Lyons) writes:
> "Fgrep patterns are fixed strings." My question is, how the heck do
> you give a list of strings as an arg to fgrep?
You separate them with newlines. The way you type the newlines depends
on which shell you are using.
#! /bin/sh #! /bin/csh
fgrep 'string1 fgrep 'string1\
string2 string2\
string3' files string3' files
(You can use "" instead of '' if you prefer).
--
Live justly, love gently, walk humbly.
Andy Behrens
andyb at coat.com
uucp: {uunet,rutgers}!dartvax!coat.com!andyb
RFD 1, Box 116, East Thetford, Vt. 05043 (802) 649-1258
Burlington Coat, PO Box 729, Lebanon, N.H. 03766 (603) 448-5000
More information about the Comp.unix.questions
mailing list