From caa75cd76e17cc5cd5785a106003359104a29a6c Mon Sep 17 00:00:00 2001 From: aicioara Date: Tue, 12 Jan 2016 21:01:57 +0000 Subject: [PATCH] xargs: insert piped arguments at random position --- pages/linux/xargs.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/linux/xargs.md b/pages/linux/xargs.md index 28c282c46..247c8c2a0 100644 --- a/pages/linux/xargs.md +++ b/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`