

Make sure there are no extra lines at the end of the files. Type the names of your folders one per line. doesn't have any problems with unicodeOpen TextEdit.doesn't require any special escaping (no need for quotes).takes a list of directory (folder) names from a file, one per line.So as long as we're all posting various ways to do this, here is one that: 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.] You could also use underscores (Henry_David_Thoreau), or other characters as separators.įor example: $ mkdir "Henry David Thoreau" Ralph_Waldo_Emerson Walt-WhitmanThe 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. Next, you need to worry about spaces: if you have names with spaces, the names need to be in quotes, such as "Henry David Thoreau" otherwise, you'd get individual folders named Henry, David and Thoreau.

First, you need to tweak your list of customers (or whatever) so all the names are on one line. [ kirkmc adds: While this is a pretty basic hint, it shows some interesting things that you can do from Terminal. You cannot use a list with returns all the names need to be on one line, separated by spaces. It uses the following syntax: mkdir folder1 folder2 folder3I 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. So I looked at the mkdir command, which creates new folders or directories. 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.
