[Top][All Lists]

[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


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:

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.



reply via email to

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