鍍金池/ 問答/Linux/ pandoc怎么批量把html轉markdown?

pandoc怎么批量把html轉markdown?

這樣是可以的

pandoc index_split_002.html -o index_split_002.markdown

但是怎么批量轉呢?

試了下

pandoc *.html -o *.markdown

并不行 求指點!

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