I have a log file which gets new entries continuously.
How can I keep grep
running and print only the new matching lines(the old ones only once) which are added to the file to the shell?
Is there a way to use the command without having to write a script file?
Sed
would be also possible.
grep [any options to keep it running?] 'word' filename