Can I merge two files into one?

Can I merge two files into one?

Post by geofo » Fri, 23 Apr 1999 04:00:00



Hello,
I have two files:
file1:
1
2
3

file2:
a
b
c

How can I merge these files into one as:
1 a
2 b
3 c

Thanks,
geofox

 
 
 

Can I merge two files into one?

Post by Ken Pizzi » Fri, 23 Apr 1999 04:00:00



>Hello,
>I have two files:
>file1:
>1
>2
>3

>file2:
>a
>b
>c

>How can I merge these files into one as:
>1 a
>2 b
>3 c

man paste
  paste -d' ' file1 file2

                --Ken Pizzini

 
 
 

Can I merge two files into one?

Post by Patrik R?dma » Wed, 28 Apr 1999 04:00:00



> How can I merge these files into one as:

% cat file1
1
2
3
% cat file2
a
b
c
% paste -d " " file1 file2
1 a
2 b
3 c
%

--
          .
 [Patrik Radman]                        Computer Science student,

 WWW    : under construction            IRC : PatrikR on IRCNet
        "With sufficient thrust, pigs fly just fine." - RFC 1925

 
 
 

Can I merge two files into one?

Post by Konstantopoulos » Wed, 28 Apr 1999 04:00:00




> > How can I merge these files into one as:

try using paste(1)

s

 
 
 

Can I merge two files into one?

Post by Barry Margoli » Wed, 28 Apr 1999 04:00:00






>> > How can I merge these files into one as:

>try using paste(1)

Isn't that what Patrik wrote in the message you're replying to?

--

GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.