2016-04-16 9 views
1

私は3つのファイルを持っています。それらをfileA fileBとfileCと呼ぶことができます。bashを使って複数のファイルから行を読み込むには?

FILEA:

This 
sentence 
to 

FILEB:

is 
I 
write 

FILEC:その後、

the 
want 
. 

FILEAをループへの道、その後FILEBがありFILECなど

を表示します
This is the sentence I want to write . 

別のテキストファイルですか?あなたが1行のすべてを必要としない場合

答えて

0

、これが行います。

$ paste fileA fileB fileC 
This is  the 
sentence  I  want 
to  write . 

あなたはそれをすべてしたい場合は1行に、

$ echo $(paste fileA fileB fileC) 
This is the sentence I want to write . 
関連する問題