Created
July 1, 2014 22:32
-
-
Save us10096698/86671c11eaaf4050fddd to your computer and use it in GitHub Desktop.
A simple shellscript file to change the filetype of files which are in the current directory.
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
#!/usr/bin/sh | |
shopt -s extglob | |
for file in *.txt | |
do | |
mv ${file} ${file/%.*([^.])/.md} | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment