>I dont have my GAWK manual handy, but I think your problem may
>be that you are using SPRINTF which is a print to string function
>as in  str = sprintf() rather than something like  fprintf() or printf()

Not using gawk, using the original awk.  Don't know if the original awk even
supports fprintf() or printf().

>I would expect that the format overall would be
>
>       INPUT_SOURCE | awk -f awk-script_file > outputfile
>
>and awk-script_file
>       would contain your awk code
>       including something like
>
>       printf("\"%s\",\"%s\"\n", SiteVal, CustomerID);
>
>       or the %c format illustrated below...
>
>The syntax error may not be the "'s, but your use of sprintf and the more
>PERL Like
>>> "filename" . These constructs may have been added in GAWK, but they were
>not in
>the original AWK as far as I can remember.

The >> "filename" construct is definately in awk.  I see that printf is in the
awk man page.


In any event, I got it figured out.

MB
-- 
e-mail: [EMAIL PROTECTED]                                /~\ The ASCII
                                                         \ / Ribbon Campaign
[So it's true, scythe matters.  Willow  5/12/03]          X  Against
Visit - URL: http://vidiot.com/                          / \ HTML Email


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to