原文: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