原文:shell:多個文件按行合並

file 內容為: file 內容為: a b c file 內容為: read write add file 內容為: a read b write c add ...

2017-10-25 13:47 0 1873 推薦指數:

查看詳情

bash shell 合並文件

paste格式為:paste -d -s -file1 file2選項含義如下:-d 指定不同於空格或tab鍵的域分隔符。例如用@分隔域,使用 -d @。-s 將每個文件合並成行而不是按粘貼。- 使用標准輸入。例如ls -l |paste ,意即只在一列上顯示輸出。 ...

Thu Mar 06 19:23:00 CST 2014 0 5188
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM