Created
September 12, 2012 14:00
-
-
Save magnusdahlstrand/3706803 to your computer and use it in GitHub Desktop.
Create directories from file names (useful for docpad)
This file contains hidden or 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
mkdir associated-files && cd $_ | |
find ../source/html/documents/collection -type f -mindepth 3 | gsed -e 's/\/[a-z]\+\///g' | cut -d'/' -f2 | cut -d'.' -f1 | xargs mkdir |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment