The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #6 (permalink)  
Old 11-17-2008
thepurple thepurple is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 134
Opss i really sorry buddy.. It worked. In fact i put the wrong filename.

Anyway, i hope i can put 'N' number of filenames with the perl script.

perl -nle'BEGIN {$/="</log>";$,="\n";$\="\n\n"} print /<fullOperation>(.*?):.*<fullResult>(.*?:.*?)[:;]/s' logfile1 logflie2...logfileN