Timeline for Handle parentheses in this xargs multi-command
Current License: CC BY-SA 4.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 19, 2023 at 12:53 | comment | added | Stéphane Chazelas | Also: no need for xargs (and find's output is not compatible with xargs expected input format unless you use -print0/-0) as you can use find's -exec. No need to run one sh per file as sh can loop over arguments. echo can't be used for arbitrary data. See paste -sd , -` to join lines with ,. | |
| Apr 19, 2023 at 12:52 | comment | added | SSilk | Thanks for the info. These finer details of embedding place holders vs passing as arguments is new to me. I'll have to study up on it. The method I was using was demonstrated in the following post linuxize.com/post/linux-xargs-command/…. | |
| Apr 19, 2023 at 12:47 | comment | added | bxm | Thanks for the tip. | |
| Apr 19, 2023 at 12:45 | comment | added | Stéphane Chazelas | Even with quotes, that's still a command injection vulnerability (like with a $(reboot) file). The place holder should never be embedded in the code argument. | |
| Apr 19, 2023 at 12:44 | history | answered | bxm | CC BY-SA 4.0 |