Skip to content

Instantly share code, notes, and snippets.

@roktas
Created January 23, 2015 11:12
Show Gist options
  • Save roktas/f48dac1e7dd07e226513 to your computer and use it in GitHub Desktop.
Save roktas/f48dac1e7dd07e226513 to your computer and use it in GitHub Desktop.
#!/bin/bash
join() { local IFS="$1"; shift; echo "$*"; }
while read -a dirs; do
dir=$(join / "${dirs[@]}")
mkdir -p "$dir"
done < "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment