The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #5 (permalink)  
Old 02-01-2008
udiptya udiptya is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 24
file1:
name
nameabc
bcd
nameabcdefg


file2:
age
age1111
age2345
age6743

Above given are my two files. I have issued a command like

echo "`paste -d'|' file1 file2`" > file3

I am getting file3 as:
name|age
nameabc|age1111
bcd|age2345
nameabcdefg|age6743

whereas I want the values to start from a single column. Something like

file3:
name\t\t\t\t\t\t\t|age
nameabc\t\t\t\t\t|age1111
bcd\t\t\t\t\t\t\t\t|age2345
nameabcdefg\t\t\t|ge6743

All of the data in red should start from a fixed column!