Combining files line by line

sun
Score
0
Vote Up
November 23, 2006 at 08:04:05 Pacific
Specs: Solaris 10, sparc

Hi,

I need to combine 2 files line-by-line e.g.:
file1:
a
b
c

file2:
x
y
z

results:
ax
by
cz

I have been trying to loop with sed, but with no luck.

Regards,
Neil


Reply ↓  Report •


#1
Vote Down
Score
3
Vote Up
November 23, 2006 at 09:50:38 Pacific


paste -d"\0" file1 file2


Reply ↓  Report •
Reply to Message Icon Start New Discussion
Related Posts

« get day of the month How to remove a record by... »

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.

Ask the Community!
Describe your Problem
Example: Hard Drive Not Detected on My PC