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




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 06-21-2006
vgersh99's Avatar
vgersh99 vgersh99 is offline Forum Staff  
Moderator
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,198
nawk -v callid=112201 -f fossil.awk myLogFile.log

fossil.awk:

Code:
$(NF-1) == "Callid:" && $NF == callid { found=1 }
found && $(NF-1) == "Callid:" && $NF != callid { found=0 }
found


Last edited by vgersh99; 06-21-2006 at 05:40 PM..