![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Formatting bdf output | Cameron | Shell Programming and Scripting | 5 | 04-09-2008 10:05 AM |
| formatting output | balaji_prk | Shell Programming and Scripting | 4 | 09-15-2007 10:23 AM |
| Formatting Script Output | liketheshell | Shell Programming and Scripting | 3 | 08-06-2007 11:38 AM |
| Formatting output | illur81 | Shell Programming and Scripting | 3 | 10-13-2005 10:24 AM |
| Formatting the output | Cameron | Shell Programming and Scripting | 7 | 02-15-2002 10:30 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Formatting Output
Hi
I tried running the below awk 'BEGIN { printf ("%s %-51s %s %-7s %s",$var1,$var2,$var3,$var4,$var5)}' from the command prompt and it is not working. Getting the error awk: Field $() is not correct. The source line number is 1. Actually my requirement is to form a string based on a particular format. The format i have mentiioned above. But in UNIX script i am not able to do the formatting. Let me know if you have any clues. Regards Dhanamurthy |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|