1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 21:24:54 +02:00
tldr/pages/common/xargs.md
Leandro Ostera 91a1ed798e Fixes formatting.
Man the commit hooks is definitely not working
on any of muy computers. Need to revisit why.
2016-02-16 08:27:16 +01:00

19 lines
399 B
Markdown

# xargs
> Execute a command with piped arguments.
- Main use:
`{{arguments}} | xargs {{command}}`
- Handle whitespace in arguments:
`{{arguments_null_terminated}} | xargs -0 {{command}}`
- Delete all files that start with 'M':
`find . -name 'M*' | xargs rm`
- Insert arguments at chosen position:
`{{arguments}} | xargs -I piped_arguments {{command}} piped_arguments {{rest_of_arguments}}`