mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-08 14:55:51 +02:00
commit
84be2a73d1
1 changed files with 15 additions and 0 deletions
15
pages/linux/xargs.md
Normal file
15
pages/linux/xargs.md
Normal 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`
|
Loading…
Add table
Reference in a new issue