missing-cn 阅读(51) 评论(0)

点击(此处)折叠或打开

  1. #!/bin/sh
  2. cd /root
  3. thread=17
  4. count=1000
  5. start_line=1
  6. input_file="goluk_2019009.list"
  7. for ((i=1;i<=$thread;i++))
  8. do
  9. begins=`expr $start_line + $i \* $count`
  10. echo $begins >>/root/thread.log
  11. {
  12. for j in `head -$begins $input_file |tail -$count`
  13. do
  14. wcscmd del wcs://goluk/$j >> /root/output.log 2>&1
  15. done
  16. }&
  17. done