troubleshooting Question

NAWK command help

Avatar of gaugeta
gaugeta asked on
Shell Scripting
5 Comments1 Solution377 ViewsLast Modified:
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...

Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros