Skip to content

Instantly share code, notes, and snippets.

@ailourophile
Created May 22, 2014 10:13
Show Gist options
  • Save ailourophile/ee6cb41dec7044e50fa4 to your computer and use it in GitHub Desktop.
Save ailourophile/ee6cb41dec7044e50fa4 to your computer and use it in GitHub Desktop.
mkdir and copy site files
ls | grep -oP '(?<=^disc\-).*(?=\.lst)' | awk '{system("mkdir "$1)}';ls | grep -oP '(?<=^disc\-).*(?=\.lst)' | awk '{system("cp *"$1".* " $1)}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment