Skip to content

Instantly share code, notes, and snippets.

@AntonioCS
Created October 30, 2020 21:01
Show Gist options
  • Save AntonioCS/bebb3562fedca8fb919da41cec1512d2 to your computer and use it in GitHub Desktop.
Save AntonioCS/bebb3562fedca8fb919da41cec1512d2 to your computer and use it in GitHub Desktop.
Inotify example
inotifywait -m -r /myfolder -e create -e moved_to -e modify -e delete |
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment