並行處理文件

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

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