I am trying to track the changes of a file and filter the output using grep, but the below command:
Gives no output. It keeps waiting for updates, but nothing is displayed even though when I then tail or cat I can see that updates that should have been displayed weren't displayed.
Code:
tail -f /var/log/file.log | grep search_term
Gives no output. It keeps waiting for updates, but nothing is displayed even though when I then tail or cat I can see that updates that should have been displayed weren't displayed.