Hi,
I have a script which displays all the "errors" & "warnings" in a log file . But this script when run will also display the lines which contain the words "errors" & "warnings" along with the actual errors in the log files.Is there any way to avoid this?
One more thing is what modification I should do in this script so that the errors displayed will be in pages ie how do i use "ls ¦ more" in thie script?
my script is :
#! /usr/atria/bin/Perl
$error = `find . -type f -print ¦ xargs perl -ne 'print if /error¦warning/'`;
print "$error\n" ;
waiting for response.
Perl12