浏览代码

xargs: insert piped arguments at random position

aicioara 9 年之前
父节点
当前提交
caa75cd76e
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      pages/linux/xargs.md

+ 4 - 0
pages/linux/xargs.md

@@ -10,6 +10,10 @@
 
 `{{arguments_null_terminated}} | xargs -0 {{command}}`
 
+- Inserting arguments at chosen position
+
+`{{arguments}} | xargs -I piped_arguments {{command}} piped_arguments {{rest_of_arguments}}
+
 - Example: list unneeded packages with deborphan and remove them with apt-get:
 
 `sudo deborphan | xargs sudo apt-get remove`