Re: shell command into an AWK Script
From: RMH (haithem.rahmani_at_st.com)
Date: 07/06/04
- Next message: CPS: "how to use array variable in AWK"
- Previous message: Alan Connor: "Re: Can I echo a header to the top of my console ?"
- In reply to: Janis Papanagnou: "Re: shell command into an AWK Script"
- Next in thread: Stephane CHAZELAS: "Re: shell command into an AWK Script"
- Reply: Stephane CHAZELAS: "Re: shell command into an AWK Script"
- Reply: Pritish Shah: "Re: shell command into an AWK Script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: CPS: "how to use array variable in AWK"
- Previous message: Alan Connor: "Re: Can I echo a header to the top of my console ?"
- In reply to: Janis Papanagnou: "Re: shell command into an AWK Script"
- Next in thread: Stephane CHAZELAS: "Re: shell command into an AWK Script"
- Reply: Stephane CHAZELAS: "Re: shell command into an AWK Script"
- Reply: Pritish Shah: "Re: shell command into an AWK Script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|