Hello,
The below AWK script runs fine in unix , but when I try to run the same in korn shell it gives me an error
awk 'BEGIN {FS="~"};{printf "%010d%-8s%09s\n",$1,$2,$3}' $DC_FIL/red2.txt > $DC_FIL/red3.txt
errors:
Syntax error near line 1
Bailing out near line 1
Can anybody please help me on this.
Thank you
The below AWK script runs fine in unix , but when I try to run the same in korn shell it gives me an error
awk 'BEGIN {FS="~"};{printf "%010d%-8s%09s\n",$1,$2,$3}' $DC_FIL/red2.txt > $DC_FIL/red3.txt
errors:
Syntax error near line 1
Bailing out near line 1
Can anybody please help me on this.
Thank you