Skip to content

Instantly share code, notes, and snippets.

@seblavoie
Last active December 17, 2015 07:58
Show Gist options
  • Save seblavoie/5576430 to your computer and use it in GitHub Desktop.
Save seblavoie/5576430 to your computer and use it in GitHub Desktop.
Bash line to copy folder structure only (not files) contained in current folder. Inspired by: http://www.linuxquestions.org/questions/linux-newbie-8/copy-directory-structure-only-208796/.
# Run from source folder’s root.
find . -type d -exec mkdir ../destination-folder-name/{} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment