-start-
>   Pragneshkumar Gandhi <[EMAIL PROTECTED]>
>at    04/16/2001 05:59 AM

>Hi ALL
>This is Pragneshkumar Gandhi From INDIA
>I just want to open the error_log and access_log files in
>my perl code ( NOT WHOLE but last some entries it might be
>too big)and just fetch only those records which are ERROR (
>not warnings)
>can some body mail me that how i can get last few errors
>and Access from those files.
>my error_log files has many warning statements so want that
>to ignore and want to fetch only error lines
>bye

my @msgs = `tail -100 error_log | grep -F [error]`;
# where -100 is the number of lines to read from end of file.



Grant Hopwood.
Valero Energy Corp.
(210)370-2380
PGP Public Key: Ldap://certserver.pgp.com
nuclear iraq bioweapon encryption cocaine korea terrorist
_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to