Help!!-- scripting - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Help!!-- scripting

Hi, what is wrong with this code, error in line 3...
I want to get rid of the last character "||" from input file and write to output file. I just cant solve this problem....
Please Help!!!

**************************************
awk 'BEGIN {ln = 0}
{ if (ln == 0)
{ '{print "a." 1, $2, $3}' input.lst > output.lst
ln++}
else
{ '{print "|| a." $1, $2, $3}' input.lst > output.lst}
} END'


Sign In or Register to comment.