Sujet : Re: Piping commands to a shell but keeping interactivity
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.linux.miscDate : 08. Mar 2024, 00:31:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <usdiok$1a50p$3@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : Pan/0.155 (Kherson; fc5a80b8)
On Thu, 7 Mar 2024 16:24:26 +0000, James Harris wrote:
In answer to your other point about using xargs, I would use it if it
would do what's required, and do so consistently, but I am not sure
whether I can trust it or not.
You mean, accidentally operating on the wrong files?
That’s quite easy to test: instead of
xargs «cmd...»
do
xargs echo «cmd...»
and check the output to see that it shows what you expect. Once you are satisfied, you can run it again without the “echo”.