linux下并发运行任务案例

本文介绍了一种通过批处理命令来执行一系列文件处理任务的方法,包括如何使用特定命令对多个文件进行操作,并确保所有任务按顺序执行。
cat  test_txt/x000 | ./reducer >  x000.result  2> x000.err &
cat  test_txt/x001 | ./reducer >  x001.result  2> x001.err &
cat  test_txt/x002 | ./reducer >  x002.result  2> x002.err &
cat  test_txt/x003 | ./reducer >  x003.result  2> x003.err &
cat  test_txt/x004 | ./reducer >  x004.result  2> x004.err &
cat  test_txt/x005 | ./reducer >  x005.result  2> x005.err &
cat  test_txt/x006 | ./reducer >  x006.result  2> x006.err &
cat  test_txt/x007 | ./reducer >  x007.result  2> x007.err &
cat  test_txt/x008 | ./reducer >  x008.result  2> x008.err &
cat  test_txt/x009 | ./reducer >  x009.result  2> x009.err &
wait
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值