并行处理文件

cat bingxing.sh |xargs -i -P 2 sh {}

参考 https://www.cnblogs.com/f-ck-need-u/p/9752365.html

 

手动分割后并行

split -l 125000 input.list -d -a 1 batch

加后缀名

split -l 125000 input.list -d -a 1 batch&&ls|grep batch|xargs -n1 -i{} mv {} {}.list

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章