[ILUG] grep ??

O'Leary Patrick Pat.OLeary at rte.ie
Mon Nov 5 10:33:30 GMT 2007


Hi folks,
         I have been given a very large logfile & a list of about
40 names. my job is to find every  entry in the log which matches each
name in the list of names. i was thinking of simply doing something
like "cat xyz.log | grep each name > output.txt" but the lazy bugger
in me does not feel like doing that 40 times. i've trawled the web but
can't come up with a way of giving grep the list of names as a single
file. Any suggestions or help would be gratefully appreciated

Pat.
-------------- next part --------------
***********************************************************
The information in this e-mail is confidential and may be legally privileged.
It is intended solely for the addressee. Access to this e-mail by anyone else
is unauthorised. If you are not the intended recipient, any disclosure,
copying, distribution, or any action taken or omitted to be taken in reliance
on it, is prohibited and may be unlawful.
Please note that emails to, from and within RT? may be subject to the Freedom
of Information Act 1997 and may be liable to disclosure.
************************************************************


More information about the ILUG mailing list