PHL
1
Hi,
I want to print 130 fileds using formatted printing in AWK. It looks like
awk '{printf ("%7.2f%7.2f...%7.2\n",$1,$2,...,$130)}' inflie>oufile
But it gives me an error:
Word too long!
Can you please help me with this? Is there another way to do this?
Scott
2
Hi.
You could try splitting the printf statements over multiple statements, with the \n in the final one:
printf ("....", ..... )
printf ("....", ..... )
printf ("....\n", ..... )
Or maybe using gawk or nawk will help?