1
0
Fork 0
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:
jxu 2024-08-02 04:01:37 -04:00 committed by GitHub
parent f5a84a06f5
commit f290a90465
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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}}`