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

目录
相关文章
|
SQL Oracle 关系型数据库
Hive:Error while compiling statement: FAILED: ParseException cannot recognize input near '<EOF>' '<
Hive:Error while compiling statement: FAILED: ParseException cannot recognize input near '<EOF>' '<
Hive:Error while compiling statement: FAILED: ParseException cannot recognize input near '<EOF>' '<
|
Java
IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication or also for App
IDEA-解决Command line is too long. Shorten command line for SpringBootMainApplication or also for App
120 0
InvalidJobConfException: Output directory not set
InvalidJobConfException: Output directory not set
79 0
|
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报错
409 0
成功解决Failed to execute stage ‘Setup validation’: Cannot locate gluster packages
成功解决Failed to execute stage ‘Setup validation’: Cannot locate gluster packages
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
261 0
运行 ‘ApiApplication‘ 出错: Command line is too long. Shorten command line for ShopApiApplication or
|
XML IDE Java
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(下)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(下)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(下)
|
Java 应用服务中间件 开发工具
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(上)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(上)
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...(上)
|
XML IDE Java
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...
IDEA踩坑系列提一篇:助你减少排雷时间,聚焦于写代码吧
6761 1
IDEA命令行缩短器助你解决此问题:Command line is too long. Shorten command line...
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
901 0