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
Paste command issue Shahul Shell Programming and Scripting 2 08-11-2008 10:07 AM
Need a Help with paste 2 files since the output is not what i want alexcol Shell Programming and Scripting 3 01-09-2007 04:47 AM
Question on Paste command mudhireddy UNIX for Dummies Questions & Answers 4 12-13-2006 11:51 AM
How to underline/bold and how to align output clara UNIX for Dummies Questions & Answers 1 06-16-2005 01:41 PM
paste command mariner UNIX for Advanced & Expert Users 5 03-04-2005 02:42 AM

 
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
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 09-05-2008
jplayermx jplayermx is offline
Registered User
  
 

Join Date: Sep 2008
Posts: 3
Talking Paste Command does not align my output

I'm trying to "paste" two files but the result is not aligned.

File1 looks like this:
dog.csv
cat.csv
elephant.csv
cougar.csv

File2 looks like this:
2323
33
444
545545

Then I run a paste command:
paste File1 File2 > result.cnt

Then result.cnt file is created like this:
dog.csv 2323
cat.csv 33
elephant.csv 4444
cougar.csv 545545

but I want my result to be as something like the following

dog.csv..........2323
cat.csv..........33
elephant.csv...4444
cougar.csv.....545554

(Please take the dots (...) as spaces, I put them because the original post was ignoring the spaces)
So at the end I need the second column (numbers) to start at the same position.

Please advise!.

Last edited by jplayermx; 09-05-2008 at 02:26 PM.. Reason: my results was not published correctly
 

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 06:56 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