Bob Proulx <b...@proulx.com> 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, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

Reply via email to