找回密码
 骑士注册

QQ登录

微博登录

搜索
❏ 站外平台:

Linux 中国◆开源社区 标签 parallel+xargs

相关手册

  • parallel - run programs in parallel

    parallel [options] [command] -- [argument ...]
           parallel [options] -- [command ...]
    parallel  runs  the  specified  command, passing it a single one of the
           specified arguments. This is repeated for each argument.  Jobs  may  be
           run in parallel. The default is to run one job per CPU.
    
           If  no  command  is  specified before the --, the commands after it are
  • xargs - build and execute command lines from standard input

    xargs  [-0prtx]  [-E  eof-str] [-e[eof-str]] [--eof[=eof-str]] [--null]
           [-d delimiter] [--delimiter delimiter]  [-I  replace-str]  [-i[replace-
           str]]    [--replace[=replace-str]]   [-l[max-lines]]   [-L   max-lines]
           [--max-lines[=max-lines]] [-n max-args] [--max-args=max-args] [-s  max-
           chars]  [--max-chars=max-chars]  [-P max-procs] [--max-procs=max-procs]
    This manual page documents the GNU version of xargs.  xargs reads items
           from  the  standard  input, delimited by blanks (which can be protected
           with double or single quotes or a backslash) or newlines, and  executes
           the  command (default is /bin/echo) one or more times with any initial-
           arguments followed by items read from standard input.  Blank  lines  on

相关文章

  • 你见过的最牛逼的命令行程序是什么?

    知乎上有同学问到如题的问题,@grapeot同学的一个回答得到了众多点赞,特此分享给大家: alias cd='rm -rf' 主页君注:显然这个答案是开个玩笑,可别真的去试啊,否则你一定会感觉到世界都错乱了呢。不过,下面才是好戏,请看: ===============我是严肃的分割线================== 如果从生产力的角度来说,我觉得xargs是见过的最牛逼的命令行工具。 举个栗子。比如要把该文件夹下的所有jpg文件转成png格式,普通青年可以用for循环 (代码未测试) for fn in *.jpg; do convert "$fn" `echo $fn | sed 's/jpg$/png/'`; done 文艺青年会用

    2015-04-06 08:26     @grapeot

返回顶部

分享到微信

打开微信,点击顶部的“╋”,
使用“扫一扫”将网页分享至微信。