rev*_*rev 4 markdown sh textutils batch-processing pandoc
关于我如何获得的任何想法:
textutil -convert html file.doc -stdout | pandoc -f html -t markdown -o file.md
Run Code Online (Sandbox Code Playgroud)
以便我可以在文件夹及其所有子文件夹上执行命令,以便将markdown文件放在与原始文件夹相同的文件夹中?
使用find运行子shell的xargs
find . -name '*.doc' -print0 | xargs -0 sh -c \
'textutil -convert html "$0" -stdout | pandoc -f html -t markdown -o "${0%.*}.md"'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2243 次 |
| 最近记录: |