Skip to content

Instantly share code, notes, and snippets.

@siriusnottin
Created August 16, 2018 12:54
Show Gist options
  • Save siriusnottin/3f92432f11150a4668fb6570111ee655 to your computer and use it in GitHub Desktop.
Save siriusnottin/3f92432f11150a4668fb6570111ee655 to your computer and use it in GitHub Desktop.
Create multiple folders (Mac OSX)
# Create a file (named concerts.txt in this case) containing the names of all folders to create :
nano concerts.txt
# In my case this file lists concerts (one for each line). The name of each folder must be in quotation marks. Example :
"Concert name 1"
"Concert name 2"
"Concert name 3"
"Concert name 4"
# Now execute this command by changing the file name :
cat concerts.txt | xargs mkdir
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment