Hi all,
This series of awk commands work great on the command line:
$ awk -F\; '/RAWIMUSA/{print $2}' 1.txt | awk -F\* '{print $1}' | awk -
F, '{print $1 "," $2 "," substr($3, 7,1) "," $4 "," $5 "," $6 ","
$7 "," $8 "," $9}' > out
However, when I put this in a script, I get the following error:
$ awk: 1: unexpected character '.'
(I removed the awk words from the above command)
I removed the file 1.txt from inside the script and tried to redirect
it's output to the script by using the cat command by I got the same
error. Can you please let me know what I am doing wrong and what I
need to do to fix it?
Thanks


|