0
我想連接文件合併成一個單一的文件時,他們的名字匹配,例如第一部分,如果我有以下文件:連接文件的內容到一個單一的文件基礎上他們的名字在linux
file1.name1 which contains :
this is file1
file1.name2 which contains :
this is file2
file2.name3 which contains :
this is file1
file2.name4 which contains :
this is file2
的結果會像
file1 will contain
this is file1
this is file2
file2 will contain
this is file1
this is file2
您是否嘗試過這個事情。如果你環顧這個網站,有許多答案與使用'awk'(例如)做這種事情有關。 –