mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
15 lines
318 B
Markdown
15 lines
318 B
Markdown
# xargs
|
|
|
|
> Execute a command with piped arguments.
|
|
|
|
- Main use:
|
|
|
|
`{{arguments}} | xargs {{command}}`
|
|
|
|
- Handle 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`
|