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

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

sed does not flush output.


From: Carlo Wood
Subject: sed does not flush output.
Date: Fri, 14 Feb 2003 16:18:18 +0100
User-agent: Mutt/1.4i

sed stands for STREAMING editor no?
Then why doesn't it flush at least once per line?

I would like to use sed to filter log files that
I am monitoring live.  That fails because sed doesn't flush.


For example:

  echo "testtest" > log
  tail -f log | sed -e 's/test/X/'

gives no output to the terminal.

Can you please add a commandline option to 
make sed flush after every new-line?

-- 
Carlo Wood <address@hidden>




reply via email to

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