Re: Re: xargs mock run
oset <[email protected]>
| Newsgroups | gmane.comp.gnu.findutils.bugs |
|---|---|
| Message-ID | <[email protected]> |
> On Mon, Oct 07, 2024 at 07:27:24PM +0200, oset <oset@#$%^&*> wrote: I would appreciate you to not include someones email address in a public mail list letter. I have enough spam, I do not need more. > You can. Just replace the actual command with "sh -c 'echo ACTUAL_COMMAND'". I cannot. That is not the same. I dont know what it does, but not what I wanted, not what I was talking about. ~~~ $ echo a > a.txt; echo bb > b.txt $ sh -c 'echo * | xargs gzip -k' ~~~ There is nothing here. What I expected to see/get was: ~~~ $ echo * | xargs --dry-run gzip -k gzip -k a.txt b.txt $ ls a.txt b.txt ~~~ No change, just print commands xargs intended to run, but not run them. There is analogue command in gmake: -n, --just-print, --dry-run, --recon Print the commands that would be executed, but do not execute them (except in certain circumstances). That's what I was talking about.