Created
September 23, 2015 22:38
-
-
Save loadedsith/f362eba0ad76d29ac377 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
# before: | |
# $> tree . | |
# . | |
# | |
# 0 directories, 0 files```` | |
# | |
# | |
# after: | |
# $> tree . | |
# . | |
# ├── test1 | |
# │ └── test3 | |
# │ └── test4 | |
# └── test2 | |
# └── test3 | |
# └── test4 | |
# | |
# 6 directories, 0 files | |
mkdir test1; | |
mkdir test2; | |
find . -mindepth 1 -maxdepth 1 -execdir bash -c "cd "{}";mkdir test3; cd test3; mkdir test4; echo `pwd`" \; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment