bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] Feature request : pipe conversion on the fly


From: Xavier PUCEL
Subject: [bug-gnu-libiconv] Feature request : pipe conversion on the fly
Date: Wed, 29 Jun 2011 16:43:28 +0200

Hello,

I use iconv to lasily convert some program output via a pipe.
However, iconv seems to wait until the program completes before converting and outputting the whole text at once.
It would be great if iconv converted on the fly (or at least line by line) when reading from standard input.

For example, let test.sh be the following file:

#!/bin/sh
echo Hello
sleep 10
echo World

Then the following command will not output anything before 10 seconds :
./test.sh | iconv -f ASCII

I'd like it to convert the first line as soon as it is available.

Thanks.

Xavier.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]