1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-19 07:55:25 +02:00
tldr/pages/linux/xargs.md
2016-01-08 09:38:59 +01:00

15 lines
320 B
Markdown

# 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`