Skip to content

Instantly share code, notes, and snippets.

@johnrc
Created May 3, 2016 22:02
Show Gist options
  • Save johnrc/13ba5cf93dce9605b57b878fa153385b to your computer and use it in GitHub Desktop.
Save johnrc/13ba5cf93dce9605b57b878fa153385b to your computer and use it in GitHub Desktop.
Command to watch for deleted files in a directory
#!/usr/bin/sh
inotifywait -mr -e delete /some/dir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment