Creating an action based event in bash
I couldn't find an answer to my question, and I'm sure it is possible:
How can I create an action based on some event in bash:
Lets say I have some file `text.txt`,
I want to do something, like `grep` on this file
If and only if a line was added to this file,
Or the file size got bigger, or md5sum...