Skip to content

Instantly share code, notes, and snippets.

@PMaynard
Created April 5, 2014 18:31
Show Gist options
  • Save PMaynard/9996019 to your computer and use it in GitHub Desktop.
Save PMaynard/9996019 to your computer and use it in GitHub Desktop.
Move all .js files into their own directory and create a README.md
#!/bin/sh
for filename in *.js
do
D=$(basename $filename .js)
mkdir $D
git mv $filename $D
echo "# $D" > $D/README.md
done;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment