How to make a bunch of folders, all at once

If you have to make a MILLION folders in one place, and you really do not want to type that much (and who could blame you!), here is a better/faster/more elegant way to do it :
1. List of folders put in a (ordinary text) file, with no blanks, every folder name in a new line.
2. Put this file where future folders should be, and type :
# mkdir -p $(cat name-of-the-file)
3. That is it 😉

This entry was posted in Linux and tagged . Bookmark the permalink.

Comments are closed.