Quote:
|
Originally Posted by fredao
patt is a shell variable or gawk variable?
[...]
|
patt is a shell variable here:
Code:
patt="$(printf "id=\"%s\"|" $(<file2))"
... and becomes an awk variable here:
Code:
awk '$0 ~ patt{print $0RS}' RS="</object>" patt="${patt%|}" file1