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: ocdinsomniac on Apr 25, '06 08:55:54AM

The "for" command is very nice for this:

for item in `cat your_list.txt`; do mkdir /path/to/location/$item; done

No text reformatting required.

-systemsboy



[ Reply to This | # ]
Create multiple folders from Terminal
Authored by: osxpounder on Apr 25, '06 11:51:45AM
The "for" command is very nice for this:

for item in `cat your_list.txt`; do mkdir /path/to/location/$item; done

No text reformatting required.

This also fails for me. I get the error:

mkdir: your_list.txt: File exists

---
--
osxpounder

[ Reply to This | # ]