Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tail -f and sed

Status
Not open for further replies.

MrTom

Programmer
Mar 13, 2001
383
GB
when i run

tail -f mylog | sed 'myregex'

sed does not print any results as if it's just putting everything into it's own buffer.
is there any way of getting sed to print as it goes along or is there an equivalent program i could use (can egrep do regex substitutions?).
i'd rather not have to do this in perl.

thx
 
Don't use the -f option as it keeps the pipe alive and sed will remain in buffering state forever. ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top