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 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。

目录
相关文章
|
8月前
|
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报错
64 0
|
Linux Shell Windows
Shell - line 2: $‘\r‘: command not found
拷贝脚本提交后报错 line 2: $'\r': command not found,但是这是别的同学可以运行后发给我的,随后开始排查。安装 dos2unix 需要使用 yum。安装 yum 需要使用 brew。
404 0
Shell - line 2: $‘\r‘: command not found
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
184 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
116 0
Error running 'XXXApplication': Command line is too long. Shorten command line forXXX
command exec make executable file not found in %PATH%
command exec make executable file not found in %PATH%
199 0
command exec make executable file not found in %PATH%
how to attach source code of Spark
how to attach source code of Spark
88 0
how to attach source code of Spark
Command line is too long. Shorten command line for AppWebStarter or...(已解决)
找到你项目中 .idea/workspace.xml文件 找到 < component name=“PropertiesComponent” > 在标签内部加上这句
143 0
Command line is too long. Shorten command line for AppWebStarter or...(已解决)
find: missing argument to `-exec‘ 已解决
find: missing argument to `-exec‘ 已解决
596 0
find: missing argument to `-exec‘ 已解决
env-cmd is not recognized as an internal or external command
env-cmd is not recognized as an internal or external command
193 0
env-cmd is not recognized as an internal or external command
find: missing argument to `-exec&#39;
今天使用find命令查找删除文件时,遇到下面错误,这个是因为在{}和\之间必须要有空格,否则会报上面的错。 以前都没有注意到这个细节,特此记录一下。   [root@DB-Server full]#  find  .
1355 0

热门文章

最新文章