So I have
find . -name \*.md -type f -exec pandoc --filter ./filter1.py -o {}.html {}
And notice the {}.html
. The {}
returns a filename ending with .md
, but I want it to just return the filename without the .md
, so say I have a file named index.md
, {}
should return index
, resulting in a file named index.html
, rather then resulting in a filename named index.md.html
.
So how would I go about removing the .md
within this command?