Skip to content

Instantly share code, notes, and snippets.

@jedsundwall
Created February 8, 2016 18:23
Show Gist options
  • Save jedsundwall/4c140966c5c09978b7ca to your computer and use it in GitHub Desktop.
Save jedsundwall/4c140966c5c09978b7ca to your computer and use it in GitHub Desktop.
If you have a "urls.txt" file with a list of directory paths (one per row), this script will go through it and create directories for you. Just put it and the urls.txt into the directory where you'd like to create the paths, navigate their in the terminal and run "sh mkdirs.sh".
while read p; do
mkdir -p $p
done <urls.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment