GAUTAM
asked on
NAWK command help
Hi experts...
I am a newbie to UNIX.I found an Nawk command and have no idea what it means.Can anyone explain this command bit by bit
nawk -F "|" '{i=1;while(i<=NF){gsub(/^ [ \t]+|[ \t]+$/,"", $i); if (length($i)>0) printf("%s|",$i) ; if (i==NF){printf("\n")}; i++}}' $rej_list | sed -e 's/.$//' >! $rej_list_fmt
Please help...
I am a newbie to UNIX.I found an Nawk command and have no idea what it means.Can anyone explain this command bit by bit
nawk -F "|" '{i=1;while(i<=NF){gsub(/^
Please help...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@woolmilkporc:This is run in tcsh shell.Is tcsh shell obsolete?
No, tcsh is not at all obsolete.
csh is rather old and a bit inconvenient, but is not obsolete either.
What I meant to say is that the redirection format ">!" is no longer mandatory for non-existing output files in neither shell, but can still be used in csh and tcsh nonetheless. ksh and bash don't recognize this format, however.
Thx for the points!
wmp
csh is rather old and a bit inconvenient, but is not obsolete either.
What I meant to say is that the redirection format ">!" is no longer mandatory for non-existing output files in neither shell, but can still be used in csh and tcsh nonetheless. ksh and bash don't recognize this format, however.
Thx for the points!
wmp
ASKER
Thx for the reply.
ASKER