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 -->
  #5 (permalink)  
Old 01-27-2007
fredao fredao is offline
Registered User
 

Join Date: Dec 2006
Posts: 58
Quote:
Originally Posted by radoulov
With GNU awk!

Code:
patt="$(printf "id=\"%s\"|" $(<file2))"
awk '$0 ~ patt{print $0RS}' RS="</object>" patt="${patt%|}" file1
how can I enter these two lines as a command, can you make it clear?
Reply With Quote