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?