鍍金池/ 問(wèn)答/Linux/ pandoc怎么批量把html轉(zhuǎn)markdown?

pandoc怎么批量把html轉(zhuǎn)markdown?

這樣是可以的

pandoc index_split_002.html -o index_split_002.markdown

但是怎么批量轉(zhuǎn)呢?

試了下

pandoc *.html -o *.markdown

并不行 求指點(diǎn)!

回答
編輯回答
魚(yú)梓
for i in `ls -al *.html`;do
    pandoc ${i} -o ${i}.md
done
2018年8月31日 16:19