Created
August 25, 2016 21:57
-
-
Save siberex/861b9326ddf56070a62faa4843eccb50 to your computer and use it in GitHub Desktop.
Clone tree structure
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
# http://ilyabirman.ru/meanwhile/all/clone-directory-structure/ | |
SRC='/Volumes/My Passport/Porno/' | |
DEST='/tmp' | |
find "$SRC" -type f | while read f; do mkdir -p "$(dirname "$DEST$f")" && touch "$DEST$f"; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment