Skip to content

Instantly share code, notes, and snippets.

@lyrixx
Created July 22, 2022 13:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lyrixx/891a6baac978d7ae7e4a304375227722 to your computer and use it in GitHub Desktop.
Save lyrixx/891a6baac978d7ae7e4a304375227722 to your computer and use it in GitHub Desktop.
Watch dir and copy on change
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