Re: shell command into an AWK Script

From: RMH (haithem.rahmani_at_st.com)
Date: 07/06/04


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



Relevant Pages

  • Re: shell command into an AWK Script
    ... Pritish ... > now take alook at this piece of code: ... > this line is from my AWK scipt ... > my question how to make the AWK script use the second argument of the ...
    (comp.unix.shell)
  • Re: shell command into an AWK Script
    ... > now take alook at this piece of code: ... > this line is from my AWK scipt ... > my question how to make the AWK script use the second argument of the ... Do you really need a shell, ...
    (comp.unix.shell)