help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] what's the best way to join two parts


From: lina
Subject: [Help-bash] what's the best way to join two parts
Date: Thu, 29 Dec 2011 23:26:12 +0800
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111114 Icedove/3.1.16

Hi,

for a file,

$ cat a_3.txt
aaa
bbb

123
321

what if I want to join two parts together, the output wish to be

aaa 123
bbb 321

I only can think of one way of doing it,
put
aaa
bbb
in one file b_1.txt
put
123
321
in another file b_2.txt
and then
paste b_1.txt b_2.txt

are there some way not need to output as two files,

Thanks ahead for any advice,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]