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

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

sed -> needs to wait for EOF?


From: danial
Subject: sed -> needs to wait for EOF?
Date: Thu, 16 May 2002 12:11:45 +1000
User-agent: Mutt/1.3.28i

It seems that you can't use sed when following a file.

Example:

  tail -f /tmp/foo | sed -e s/foo/bar/g &
  echo 123foo456 > /tmp/foo

You would expect that 123bar456 would be printed to your screen somewhere by
the tail command, but it's not.

My only conclusion here is that sed needs the EOF before it can print
anyhting, I came to this conclcusion because if you are not doing a -f on your
tail, then it works fine.

cheers
Danial Pearce



reply via email to

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