A really simple question, but I couldn’t find a simple answer here on SO.
I have a log file my.log where some lines contain the word “User”. How can I make a grep command to run constantly and output every time the log is updated with a line containing the word “User”? Thanks.
tail -f watches the file and outputs any lines added to the end