add xargs

This commit is contained in:
Gubolin
2014-03-12 18:25:30 +01:00
parent 662bc05ca8
commit 4252370942

15
pages/linux/xargs.md Normal file
View File

@@ -0,0 +1,15 @@
# xargs
> execute a command with piped arguments
- main use
`{{arguments}} | xargs {{command}}`
- handling whitespace in arguments
`{{arguments_null_terminated}} | xargs -0 {{command}}`
- example: list unneeded packages with deborphan and remove them with apt-get
`sudo deborphan | xargs sudo apt-get remove`