The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
Formatted Output dhanamurthy Shell Programming and Scripting 6 05-13-2008 03:30 AM
Formatted output - awk dhanamurthy Shell Programming and Scripting 3 05-12-2008 12:25 AM
Urgent printing problem filipd HP-UX 1 08-24-2006 02:47 PM
generating timer Confuse High Level Programming 5 09-16-2003 03:37 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 01-10-2008
jisha jisha is offline
Registered User
  
 

Join Date: Jan 2008
Location: Bangalore,India
Posts: 144
Thumbs up Generating a report -Formatted printing -Urgent

Hi,

My aim is to generate a report using shell script. There are various formats fields coloumns etc.

I want to print in a single line (row) but in different coloumn as given below:

field1 field2 field3 field4
....... ....... ...... .......


The spacing format is different for different coloumns.
Using awk command i need to print this.
If the fields are given and the spacing format is also given, can u tell mee the command to print this as above in a new file?
  #2 (permalink)  
Old 01-10-2008
frank_rizzo frank_rizzo is offline Forum Advisor  
Resident BOFH
  
 

Join Date: Dec 2007
Posts: 426
use printf directly from the shell or within awk if needed.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:04 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0