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 -->
  #10 (permalink)  
Old 01-27-2007
radoulov's Avatar
radoulov radoulov is online now
addict
 

Join Date: Jan 2007
Location: Milan, Italy/Varna, Bulgaria
Posts: 1,536
Quote:
Originally Posted by fredao
[...]
It works, comsumes a lot of computational power though. thanks!
would you explain your code?
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.
Reply With Quote