![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| how to access values of awk/nawk variables outside the awk/nawk block? | saniya | Shell Programming and Scripting | 5 | 05-13-2008 04:37 AM |
| nawk & awk | sd12 | UNIX for Advanced & Expert Users | 5 | 05-05-2008 07:46 AM |
| nawk/ksh help | DeltaX | Shell Programming and Scripting | 0 | 03-06-2008 11:54 AM |
| nawk -v to awk | kamel.seg | Shell Programming and Scripting | 2 | 12-18-2007 03:30 AM |
| nawk | whatisthis | Shell Programming and Scripting | 3 | 09-29-2004 10:44 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
How to use awk instead of nawk?
Hi all,
I can run the following script using nawk..However, I find that teh server dun support nawk.. May I know how to change teh script to use awk such that it will work? Very urgent.. thx! nawk 'BEGIN {FS=OFS=","} NR==FNR{arr[$1]=$2;next} $0 !~ "Documentation"{print $0;next} {split($9,a,"-")} a[3] in arr{$11=arr[a[3]]}1' $CONFIG_TXT $FILENAME > $OUTPUT |
| Forum Sponsor | ||
|
|
| Thread Tools | |
| Display Modes | |
|
|