mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 01:22:09 +02:00
xargs: add -n1 example (#13340)
Co-authored-by: spageektti <git@spageektti.cc>
This commit is contained in:
parent
f5a84a06f5
commit
f290a90465
1 changed files with 4 additions and 0 deletions
|
@ -16,6 +16,10 @@
|
|||
|
||||
`find . -name '*.backup' -print0 | xargs -0 rm -v`
|
||||
|
||||
- Execute the command once per argument:
|
||||
|
||||
`{{arguments_source}} | xargs -n1 {{command}}`
|
||||
|
||||
- Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as `_`) with the input line:
|
||||
|
||||
`{{arguments_source}} | xargs -I _ {{command}} _ {{optional_extra_arguments}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue