mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
xargs: fix missing option placeholders (#16151)
This commit is contained in:
parent
2e1038b503
commit
6362f8ad6a
3 changed files with 5 additions and 5 deletions
|
@ -14,11 +14,11 @@
|
|||
|
||||
- 여러 스레드를 활용하여 `.log` 확장자를 가진 모든 파일을 gzip으로 압축 (`-print0`는 파일 이름을 null 문자로 분리하고, `-0`은 이를 구분자로 사용):
|
||||
|
||||
`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{-n|--max-args}} 1 gzip`
|
||||
`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{[-n|--max-args]}} 1 gzip`
|
||||
|
||||
- 각 인수에 대해 한 번씩 명령 실행:
|
||||
|
||||
`{{인수들_소스}} | xargs {{-n|--max-args}} 1 {{명령어}}`
|
||||
`{{인수들_소스}} | xargs {{[-n|--max-args]}} 1 {{명령어}}`
|
||||
|
||||
- 각 입력 줄에 대해 한 번씩 명령 실행, 입력 줄로 플레이스홀더(여기서는 `_`로 표시)를 대체:
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@
|
|||
|
||||
- Gzip alle bestanden met een `.log` extensie en profiteer van het voordeel van meerdere threads (`-print0` gebruikt een nul-teken om bestandsnamen te splitsen en `-0` gebruikt het als scheidingsteken):
|
||||
|
||||
`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{-n|--max-args}} 1 gzip`
|
||||
`find . -name '*.log' -print0 | xargs {{[-0|--null]}} {{[-P|--max-procs]}} {{4}} {{[-n|--max-args]}} 1 gzip`
|
||||
|
||||
- Voer het commando eenmaal per argument uit:
|
||||
|
||||
`{{argumenten_bron}} | xargs {{-n|--max-args}} 1 {{commando}}`
|
||||
`{{argumenten_bron}} | xargs {{[-n|--max-args]}} 1 {{commando}}`
|
||||
|
||||
- Voer het commando één keer uit voor elke invoerregel, waarbij elke plaatsaanduiding (hier gemarkeerd als `_`) wordt vervangen door de invoerregel:
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
- Execute the command once per argument:
|
||||
|
||||
`{{arguments_source}} | xargs {{-n|--max-args}} 1 {{command}}`
|
||||
`{{arguments_source}} | xargs {{[-n|--max-args]}} 1 {{command}}`
|
||||
|
||||
- Execute the command once for each input line, replacing any occurrences of the placeholder (here marked as `_`) with the input line:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue