Here is the shell script I've got so far. I want it to check recursively, hence the following options:
-efor event notification and tracking
For a reason unknown to me, this approach isn't working. I'm creating/modifying/deleting files using rm/nano/touch etc and in the terminal I ran the script I get a message saying that a particular operation has been used, where it was used and the file it was used on e.g.
/home/stephen/ CREATE test where test is the file I've created using touch.
#!/bin/sh while inotifywait -mre create,delete,modify /home;do echo "test" done