The UNIX and Linux Forums  


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 -->
  #4 (permalink)  
Old 11-17-2008
thepurple thepurple is offline
Registered User
  
 

Join Date: Oct 2007
Posts: 134
Oaoo Greate its working. I want to put the Output in the files.

i ran it like below. But output.txt contains few string which is not matched with original output in my screen

perl -nle'BEGIN {$/="</log>";$,="\n";$\="\n\n"} print /<fullOperation>(.*?):.*<fullResult>(.*?:.*?)[:;]/s' 2008-11-11.0.log > output.txt