Create folders from text file

Did you ever had the case that you wanted to create a lot of folders but didn't want to do this by hand? There is a simple command to create a list of folders from a text file:

xargs -tI % mkdir % < folder-list.txt  

with each folder name in a separate line like the following:

Folder1  
Folder2  
Images  
Texts  
...
comments powered by Disqus