Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1731085
  • 博文数量: 150
  • 博客积分: 660
  • 博客等级: 上士
  • 技术积分: 2480
  • 用 户 组: 普通用户
  • 注册时间: 2005-08-08 11:39
文章分类

全部博文(150)

文章存档

2019年(4)

2018年(36)

2017年(53)

2016年(7)

2015年(3)

2014年(3)

2013年(27)

2012年(2)

2011年(1)

2006年(1)

2005年(13)

分类: 系统运维

2019-01-10 10:44:52


点击(此处)折叠或打开

  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

阅读(33704) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~