Skip to content

Instantly share code, notes, and snippets.

@nasirkhan
Created April 11, 2014 18:16
Show Gist options
  • Save nasirkhan/10489404 to your computer and use it in GitHub Desktop.
Save nasirkhan/10489404 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 {}
@sehrguey
Copy link

sehrguey commented Mar 6, 2017

I tried the command (changing the user name in /home) yet the 'output directory remained empty. oops

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment