dear all
How to passing the parameters or results to outside of the AWK program? anyone can help
awk '{print $1}' file1 > $a ?
dear all
How to passing the parameters or results to outside of the AWK program? anyone can help
awk '{print $1}' file1 > $a ?
I'm not completely sure I understand what you want to do.
But, if you are attempting to set a variable, you can try the following:
sh or ksh
$ xx=`awk '{print $1}' /etc/hosts`
csh
set mm=`awk '{print $1}' /etc/hosts`
You just have to be careful since a file could contain information than you can put into one variable (Sorry, don't recall the limit off the top of my head)
it's worked, Thanks RTM
One can't help many, but many can help one:p