Find a Phrase in a File
Gregory Piñero
gregpinero at gmail.com
Tue Sep 19 19:15:18 UTC 2006
Hi there,
I have a 56 mb text file, all the text on one line. I want to find a
certain phrase and show a few words before and after each occurance.
Is there an easy way to do that on the command line that I'm
overlooking? grep just shows the whole line so that doesn't really
help me.
Let me know if you have any ideas.
Thanks,
--
Gregory Piñero
Chief Innovation Officer
Blended Technologies
(www.blendedtechnologies.com)
More information about the ubuntu-users
mailing list