Re: Re: xargs mock run

oset <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
&gt; On Mon, Oct 07, 2024 at 07:27:24PM +0200, oset &lt;oset@#$%^&amp;*&gt; 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.   &gt; You can. Just replace the actual command with &#34;sh -c &#39;echo ACTUAL_COMMAND&#39;&#34;.   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 &gt; a.txt; echo bb &gt; b.txt  $ sh -c &#39;echo * | xargs gzip -k&#39;   ~~~   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&#39;s what I was talking about.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.