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 here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
printing the next line too?? AndyA Shell Programming and Scripting 6 01-31-2008 02:35 AM
Printing out pattern in line FK_Daemon Shell Programming and Scripting 3 11-23-2007 12:27 PM
printing a line number using awk rjsha1 Shell Programming and Scripting 3 09-01-2006 06:25 AM
Dynamically Creating and Printing to Files Laud12345 Shell Programming and Scripting 0 03-02-2005 09:07 AM
Printing line numbers MizzGail UNIX for Dummies Questions & Answers 2 07-25-2002 01:18 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-17-2005
Registered User
 

Join Date: May 2005
Posts: 80
Stumble this Post!
Creating a line for printing

Hi All

I need to create a report and need some help on the formating side. In this report, I gather information from 2 different files and produce the line. I was looking at having a variable for the full lenght of the line with spaces and using the substr to put the right fields in place.

Is there a better way for doing this ?

Thx

J
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 06-17-2005
Registered User
 

Join Date: May 2005
Posts: 46
Stumble this Post!
Please explian the problem in detail

or still better

please paste a aprt of ur files and the output u want
Reply With Quote
  #3 (permalink)  
Old 06-17-2005
Registered User
 

Join Date: May 2005
Posts: 80
Stumble this Post!
ok. I have the following files :-
File 1 File 2
item1 item3
item2 item5
item4


I want to produce the following output :-
Date In Out
xx.xx.xxx item1 item3
item2 item5
item4


Hope this is clear.
Reply With Quote
  #4 (permalink)  
Old 06-17-2005
Registered User
 

Join Date: May 2005
Posts: 80
Stumble this Post!
The formating did not come out correct.
____Date_____|________IN_______|____OUT
xx.xxx.xx _____|_____item1_______|___item3
_____________|_____item2_______|___item5
_____________|_____item4_______|________
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 10:57 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0