Created
July 22, 2022 13:54
-
-
Save lyrixx/891a6baac978d7ae7e4a304375227722 to your computer and use it in GitHub Desktop.
Watch dir and copy on change
This file contains 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
watch -n 1 cp -u -R ./source ./dest | |
# Run every seconds: `-n 1` | |
# Copy everything from "source" to "dest": | |
# `-R ./source ./dest` | |
# But only if the content is different `-u` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment