Help required on file formating
I have two files file1 and file2 as shown below:
file1:
name
nameabc
bcd
nameabcdefg
file2:
age
age1111
age2345
age6743
I have pasted one file on the other with the delimiter "|" and the resulttant file is:
name|age
nameabc|age1111
bcd|age2345
nameabcdefg|age6743
but I want it to be formatted like this:
name |age
nameabc |age1111
bcd |age2345
nameabcdefg |age6743
I tried it with "\t" but since the length of name can vary the number of tabs is not constant. Can anybody give a solution to this?
|