博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
shell中的wait
阅读量:2297 次
发布时间:2019-05-09

本文共 229 字,大约阅读时间需要 1 分钟。


cat test1 | uniq > newtest1 &
cat test2 | uniq > newtest2 &
wait
diff newtest1 newtest2
为了比较newtest1和newtest2的不同,必须先让以上的两个cat命令成功并执行完成并生成newtest1和newtest2,否则diff的执行将错误。。。而
wait就是保证以上命令执行完成之后才执行diff命令....在以上命令执行完成之前是不会执行diff命令的

转载地址:http://jalnb.baihongyu.com/

你可能感兴趣的文章
CSS三种布局模型及布局的一些注意事项
查看>>
Binary Tree Operations(II) - Path Sum and Cycle Detection
查看>>
Binary Tree Operations(III) - Convert a Binary Tree to Down-Right Representation
查看>>
Least Recently Used(LRU) Cache
查看>>
Check Soduku Solution
查看>>
Sort Colors
查看>>
Longest Consecutive Sequence
查看>>
The First Occurrence of Needle In Haystack
查看>>
Click Notes II - Click Script Language
查看>>
[转]环球企业家:思科穿越暴风眼
查看>>
iPhone3G S, Palm Pre和Android G1性能价格大比拼
查看>>
微软欧盟IE之争:两个强盗的对决
查看>>
Linux System Log
查看>>
【转】When you succeed with Free, you are going to die by Free
查看>>
Was Moore's Law Inevitable?
查看>>
车·行·记
查看>>
iPhone的毛利率接近60%
查看>>
【转】Google为什么推出自己的手机和浏览器
查看>>
Google, 微软,Apple以及Yahoo业务对比分析
查看>>
iPad发布的启示
查看>>