Last active
March 12, 2016 15:09
-
-
Save rdok/3285ea284d90a55e12a1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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/bash | |
scripts=$(ls *.py) | |
for script in $scripts; do | |
script_directory="${script::-3}" | |
mkdir -p $script_directory | |
mv $script $script_directory | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use bash instead of sh.