Skip to main content
Formatted text.
Source Link
Paulo Tomé
  • 3.9k
  • 6
  • 28
  • 40

I was having the same problem while trying to redirect from a streaming output source. 

You should use the -u-u (unbuffered) flag with sed and then PIPE the data instead of appending it with >>>> operator (>>>> locks the file and is blocking). 

Instead doing the following works someprogram | sed '/filter/' | tee myfile.txt

someprogram | sed '/filter/' | tee myfile.txt

I was having the same problem while trying to redirect from a streaming output source. You should use the -u (unbuffered) flag with sed and then PIPE the data instead of appending it with >> operator (>> locks the file and is blocking). Instead doing the following works someprogram | sed '/filter/' | tee myfile.txt

I was having the same problem while trying to redirect from a streaming output source. 

You should use the -u (unbuffered) flag with sed and then PIPE the data instead of appending it with >> operator (>> locks the file and is blocking). 

Instead doing the following works

someprogram | sed '/filter/' | tee myfile.txt
Source Link

I was having the same problem while trying to redirect from a streaming output source. You should use the -u (unbuffered) flag with sed and then PIPE the data instead of appending it with >> operator (>> locks the file and is blocking). Instead doing the following works someprogram | sed '/filter/' | tee myfile.txt