![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| aix printing problem | aboharb17 | AIX | 0 | 02-11-2009 07:14 AM |
| Printing Formatted Records From A File | Silentwolf | Shell Programming and Scripting | 3 | 09-03-2008 03:31 AM |
| Printing problem | alfredo | HP-UX | 2 | 03-27-2008 05:25 AM |
| Generating a report -Formatted printing -Urgent | jisha | Shell Programming and Scripting | 1 | 01-10-2008 02:59 AM |
| printing Problem | 744eagle | UNIX for Dummies Questions & Answers | 2 | 05-18-2005 02:51 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Problem with formatted printing in AWK
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? |
|
||||
|
Hi. You could try splitting the printf statements over multiple statements, with the \n in the final one: Code:
printf ("....", ..... )
printf ("....", ..... )
printf ("....\n", ..... )
Or maybe using gawk or nawk will help? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|