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 UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #12 (permalink)  
Old 01-27-2007
fredao fredao is offline
Registered User
 

Join Date: Dec 2006
Posts: 58
Quote:
Originally Posted by radoulov
Yep,
it's an "ugly" and "buggy" code (think what happens if your file2 is big ).
I'm not able to write a good code in 2 minutes .
The first command generate your pattern list with a various "or" ("|").
The second tests all the records (RS="</object>" assumed) in file1 against it.
patt is a shell variable or gawk variable? as the 1st command seems to have nothing to do with awk? is there any link for this grammar?
Reply With Quote