使用pandoc批量转换文件格式

使用Pandoc批量转换文件格式的方法

cd books
find ./ -type d -exec mkdir -p ../tgt/\{\} \;
find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -o "../tgt/$(dirname ${0})/$(basename ${0%.md}.adoc)"' {} \;



思路:
1. 复制目录结构
2. 批量解析md文件转换为adoc


http://asciidoctor.github.io/asciidoctor-gradle-examples/#_html_example
http://asciidoctor.org/docs/asciidoctor-gradle-plugin/

猜你喜欢

转载自tobato.iteye.com/blog/2401521