1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-08 07:35:41 +02:00

Merge pull request #165 from Gubolin/master

add xargs
This commit is contained in:
Romain Prieto 2014-03-13 13:27:53 +11:00
commit 84be2a73d1

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`