Bob Proulx <[email protected]> writes:
> Beyond this I am not sure what you wanted to do with exec. You may
> have wanted this:
>
> exec iconv -f ISO_8859-1 -t UTF-8
I think he rather wants this:
exec > >(iconv -f ISO_8859-1 -t UTF-8)
(See Process Substitution in the bash manual.)
Alternatively, enclose the whole script in { ... } and add the pipe
after that.
Andreas.
--
Andreas Schwab, [email protected]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."