- 论坛徽章:
- 84
|
原帖由 r2007 于 2006-3-23 15:28 发表
可以试以下xargs
- command | awk '{print $1}'|xargs rm -f
复制代码
这个简单,谢谢! xargs 记住了!
xargs
A filter for feeding arguments to a command, and also a tool for assembling the commands themselves. It breaks a data stream into small enough chunks for filters and commands to process. Consider it as a powerful replacement for backquotes. In situations where command substitution fails with a too many arguments error, substituting xargs often works. Normally, xargs reads from stdin or from a pipe, but it can also be given the output of a file.
[ 本帖最后由 yjh777 于 2006-3-23 15:48 编辑 ] |
|