Created
January 5, 2018 21:09
-
-
Save gvd/4eda53bfd86117162e9be0e943d44e8e to your computer and use it in GitHub Desktop.
Move a file to another directory once it is closed
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
| inotifywait -e close_write input_dir/ --format %w%f | xargs -I {} mv {} output_dir/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment