【发布时间】:2016-08-01 07:32:48
【问题描述】:
我最近一直在处理拆分大文件并进一步处理它们。
我现在的管道很简单>
find . -type f -size +100M | split -b 100M
但这并不完全是我所追求的。我希望拆分文件的名称类似于拆分功能的输入文件,例如> find 的输入>
file1
file2
file3
我想在例如的行中输出
file101 file102 ...
file201 file202 ...
file301 file302 ...
我试过了>
split -b 100M -d $(find . -type f -size +1000M) $(find . -type f -size +1000M)
但它没有按我的意愿工作,它会引发错误!
谢谢。
【问题讨论】: