Yes !. I like that perl stuff - makes sense, even though I never used any
perl before.
And no, my lowly "redhat from the year dot" shell doesnt have grep.
Thanks Garret.
Declan
----- Original Message -----
From: "Garret Flynn"
>> If it doesn't have the grep command you would try using a perl 'one liner'
> from the command line to grep the file
> ie
>> perl -e 'open(I,"access.log");while(<I>){print $_ if($_=~/SOMETHING/);}'
>results.txt
>> replace the word SOMETHING with the string you want to grep for.
>> [snip]
***************************************************************
The contents of this Email and any files transmitted with it
are confidential and intended solely for the use of the
individual or entity to whom it is addressed. The views stated
herein do not necessarily represent the view of the company.
If you are not the intended recipient of this Email you may not
copy, forward, disclose or otherwise use it or any part of it
in any form whatsoever. If you have received this mail in
error please Email the sender.
***************************************************************
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!