Michael Chesterton wrote:
> I guess grep is detecting whether it's talking to a terminal, and doesn't
> buffer if it is (or probably line buffers).
If you are using
whatever | grep one | grep two
the first grep will detect that it is reading from a pipe and
writing to a pipe and will buffer writes as big as it can.
Grep has a --line-buffering option for a reason.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo
+-----------------------------------------------------------+
"We have fifty million Muslims in Europe. There are signs that Allah
will grant Islam victory in Europe - without swords, without guns,
without conquests. The fifty million Muslims of Europe will turn it
into a Muslim continent within a few decades."
-- Libyan leader Mu'ammar Al-Qadhafi
http://www.memritv.org/Transcript.asp?P1=1121
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html