Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] grep sort of thing



>>>>> "Brett" == Brett Robson <b-robson@example.com> writes:

Brett> There must be a simple way to do this but I can't work it out.

Brett> I want to display strings from a text file(s) based on a reg
Brett> exp, sort of like egrep but only displaying the matched string
Brett> not the whole line from the file.

I would use sed to strip everything to the left and right of the
pattern then feed that to a grep for the pattern.

					 Cheers,
					 Bruce


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links