Sujet : Re: Splitting in shell (bash)
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.unix.shellDate : 10. Nov 2024, 02:25:49
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vgp22t$268r$1@dont-email.me>
References : 1 2
User-Agent : Pan/0.160 (Toresk; )
On Sun, 10 Nov 2024 00:51:58 -0000 (UTC), Lem Novantotto wrote:
But you could have more using IFS.
IFS is the way to go.
If you want your change to IFS to be only temporary, you can restrict it
to a subshell by putting the code sequence in “( ... )”. But then you
cannot pass variables back to the parent shell.
Another option is to use a coproc command.