Re: shell command into an AWK Script
From: RMH (haithem.rahmani_at_st.com)
Date: 6 Jul 2004 00:00:16 -0700
Thanks for all,you were very helpful.
now take alook at this piece of code:
print $1,FS,$2 >"target"
this line is from my AWK scipt
later i'll write a SHELL SCRIPT calling this awk script
my question how to make the AWK script use the second argument of the
SHELL SCIRPT as "target"
to be clearer:
>>bash-2.03$ SHELL_SCRIPT inputFile outputFile
what shall I do to make the AWK SCIPT use outputFile instead of a
hardcoded file name "target?
thanks 4 u