title: How to use tail in combination with sed .
body: <p>I want to beep a Sound ,  incase there is any Exception ocured in Log Files .</p>
  
  <p>I am using bash script . </p>
  
  <p>But unfortunately when tail is used in combintaion with sed , it doesn't work .</p>
  
  <p>I have tried with the below commands and posting here .</p>
  
  <pre><code>tail -f mylogs.log | grep "Exception" | sed -e $'s/Exception/Exception\a/'
  
  
  
  tail -f mylogs.log  | sed -e $'s/Exception/Exception\a/'
  
  
  
  tail -f mylogs.log  | grep "Exception" | sed -e $'s/Exception/Exception\a/'
  </code></pre>