Why fgrep?

Paul Blumstein paulb at ttidca.TTI.COM
Tue Dec 13 03:47:11 AEST 1988


In article <9116 at smoke.BRL.MIL> gwyn at brl.arpa (Doug Gwyn (VLD/VMB) <gwyn>) writes:
+In article <1050 at naucse.UUCP> sbw at naucse.UUCP (Steve Wampler) writes:
+>Is there ever a situation (these days) where fgrep is
+>preferable to grep?
+
+Yes,
+	fgrep 'word1
+	word2
+	...
+	wordn' files ...
+

Make that:
	fgrep 'word1\
	word2\
	...
	wordn' file1 ...

You need that \ to tell the shell that more is coming (csh, anyway).
=============================================================================
Paul Blumstein             | Aunt Em:  Hate you.  Hate Kansas.  Took the dog.
Citicorp/TTI               |                       -- Dorothy
Santa Monica, CA           +-------------------------------------------------
{philabs,csun,psivax}!ttidca!paulb  or  paulb at ttidca.TTI.COM
If caught, the Secretary of Citicorp will disavow all knowledge of my actions.



More information about the Comp.unix.questions mailing list