Thanks to messing up my first attempts to do this, I now have a directory full of files that are now named like this:
valery-special-music-poetry.txt.mtxt.md.md.txt.mtxt.md.md.md
which I need to be named:
valery-special-music-poetry.md
how can I do this from the command line?
I am running: GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin12)
This may help you
Save this to a file called rename.sh