Last active
May 5, 2017 12:23
-
-
Save rogozhka/d7b96881f81ea9dde89464346c5344fd to your computer and use it in GitHub Desktop.
Bash copy current directory struct w/o actual content
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
```bash | |
find . -type d -exec mkdir -p ../system-backup2/{} \; \ | |
-o -type f -exec touch ../system-backup2/{} \; | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment