Created
May 3, 2016 22:02
-
-
Save johnrc/13ba5cf93dce9605b57b878fa153385b to your computer and use it in GitHub Desktop.
Command to watch for deleted files in a directory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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