Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Create multiple folders from Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Create multiple folders from Terminal
Authored by: suarez on Apr 25, '06 12:03:12PM
Silly me: you don't need the cat. This will do it, too:
$ sed 's/ /\\ /g' folders.txt | xargs mkdir
The for loop and backtick solutions don't work unless the folder names are separated by spaces on one line. Then again, you can't have multiple folders containing spaces that way, and it seems you'd never want to create any such folders.txt file like that anyway.

[ Reply to This | # ]