Skip to content

Instantly share code, notes, and snippets.

@mytory
Created May 24, 2015 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mytory/e559782b6dcbf4917c62 to your computer and use it in GitHub Desktop.
Save mytory/e559782b6dcbf4917c62 to your computer and use it in GitHub Desktop.
#/bin/sh
soffice --headless --convert-to html:HTML "$1"
basename=$(basename "$1")
filename="${basename%.*}"
html2text "$filename.html" > "$filename.md"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment