Skip to content

Instantly share code, notes, and snippets.

@Swarchal
Created January 21, 2017 21:11
Show Gist options
  • Save Swarchal/5f8e6c8aa398c67f913c241d2f3fcd86 to your computer and use it in GitHub Desktop.
Save Swarchal/5f8e6c8aa398c67f913c241d2f3fcd86 to your computer and use it in GitHub Desktop.
copy directory structure without files
rsync -a -f"+ */" -f"- *" source/ destination/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment