29.13. parallel - build and execute shell command lines from standard input in parallel

简介:

并行执行shell命令

$ sudo apt-get install parallel		
		

例 29.5. parallel - build and execute shell command lines from standard input in parallel

$ cat *.csv | parallel  --pipe grep '13113'			
			

设置块大小

$ cat *.csv | parallel --block 10M --pipe grep '131136688'			
			




原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
6月前
|
PyTorch 算法框架/工具
The “freeze_support()“ line can be omitted if the program is not going to be frozen
The “freeze_support()“ line can be omitted if the program is not going to be frozen
111 1
|
Java
解决Command line is too long. Shorten command line for ServiceStarter or also for Application报错
解决Command line is too long. Shorten command line for ServiceStarter or also for Application报错
368 0
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
233 0
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
159 0
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
find: missing argument to `-exec‘ 已解决
find: missing argument to `-exec‘ 已解决
657 0
find: missing argument to `-exec‘ 已解决
vuepress build提示YAMLException: end of the stream or a document separator is expected at line 7, colu
vuepress build提示YAMLException: end of the stream or a document separator is expected at line 7, colu
855 0
find: missing argument to `-exec'
今天使用find命令查找删除文件时,遇到下面错误,这个是因为在{}和\之间必须要有空格,否则会报上面的错。 以前都没有注意到这个细节,特此记录一下。   [root@DB-Server full]#  find  .
1432 0
下一篇
无影云桌面