Skip to content

Instantly share code, notes, and snippets.

@zhangludi
Forked from nasirkhan/doc_to_html.sh
Created December 14, 2015 11:50
Show Gist options
  • Save zhangludi/3cbaf539dbd891c9f0b2 to your computer and use it in GitHub Desktop.
Save zhangludi/3cbaf539dbd891c9f0b2 to your computer and use it in GitHub Desktop.
convert .doc to .html using libreoffice command
# the following command will convert all the files to HTML which has the DOC extension.
find . -name "*.DOC" -type f -print0 |xargs -0 -I {} libreoffice --headless --convert-to html:HTML --outdir /home/nasir/output {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment