I needed to create a new folder for each of a list of customers, and knew there had to be a better way than doing it manually. So I looked at the mkdir command, which creates new folders or directories. It uses the following syntax:
mkdir folder1 folder2 folder3
I tried redirecting a file with a list of folder names into mkdir with no success, so I ended up just copying and pasting my list into Terminal. You cannot use a list with returns; all the names need to be on one line, separated by spaces.
$ mkdir "Henry David Thoreau" Ralph_Waldo_Emerson Walt-Whitman
The above command makes a total of three new folders, the first separated by spaces, the second by underscores, and the third with a hyphen; the only constraints are the actual tweaking of your list. You may need to take a tab- or return-delimited list and replace the tab or returns, or manually add quotes, but you can use this to create any number of folders very quickly.]
Mac OS X Hints
http://hints.macworld.com/article.php?story=2005121615461710