Created
April 5, 2014 18:31
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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