![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Output formating | jaydeep_sadaria | Shell Programming and Scripting | 1 | 04-10-2008 09:39 AM |
| formating array file output using perl | seismic_willy | Shell Programming and Scripting | 4 | 03-21-2007 11:23 PM |
| formating output | Krrishv | Shell Programming and Scripting | 20 | 02-02-2007 06:39 AM |
| Formating cal output | Krrishv | Shell Programming and Scripting | 2 | 01-11-2007 07:46 AM |
| displaying output in a table. | sanchopansa | Shell Programming and Scripting | 6 | 10-06-2006 09:22 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Problem In Formating Table as Output
Hi!
I'm working a program that collects 4 various inputs and format my output into tabular form.Problem is my table margins move with different character lengths. Is there a way to fix my table margins even though the variables inside the table varies in length? thank you very much... |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Code:
echo $* | awk '{ printf "%10s %20s %5d\n", $1, $2, $3)'
|
|||
| Google The UNIX and Linux Forums |