Chinaunix首页 | 论坛 | 博客
  • 博客访问: 392333
  • 博文数量: 103
  • 博客积分: 3073
  • 博客等级: 中校
  • 技术积分: 1078
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-23 15:04
文章分类

全部博文(103)

文章存档

2012年(13)

2011年(76)

2010年(14)

分类: 系统运维

2011-07-01 10:38:34

  1. xargs - build and execute command lines from standard input

  2. SYNOPSIS
  3. xargs [-0prtx] [-E eof-str] [-e[eof-str]] [--eof[=eof-str]] [--null] [-d delimiter] [--delimiter delim-
  4. iter] [-I replace-str] [-i[replace-str]] [--replace[=replace-str]] [-l[max-lines]] [-L max-lines]
  5. [--max-lines[=max-lines]] [-n max-args] [--max-args=max-args] [-s max-chars] [--max-chars=max-chars] [-P
  6. max-procs] [--max-procs=max-procs] [--interactive] [--verbose] [--exit] [--no-run-if-empty]
  7. [--arg-file=file] [--version] [--help] [command [initial-arguments]]


  8. --max-args=max-args, -n max-args
  9. Use at most max-args arguments per command line. Fewer than max-args arguments will be used if
  10. the size (see the -s option) is exceeded, unless the -x option is given, in which case xargs will
  11. exit.


如何将两行合并成一行
cat first.log |xargs -n5



阅读(1476) | 评论(0) | 转发(0) |
0

上一篇:流水线相关事件解释。

下一篇:ArBB

给主人留下些什么吧!~~