Skip to content

Instantly share code, notes, and snippets.

@uriel1998
Created April 25, 2014 01:50
Show Gist options
  • Save uriel1998/11275463 to your computer and use it in GitHub Desktop.
Save uriel1998/11275463 to your computer and use it in GitHub Desktop.
A quick shell script to use pandoc to convert markdown to libreoffice and open it.
#!/bin/bash
# usage:
if [ -f "$1" ]; then
file=$(basename "$1")
filename=${file%.*}
pandoc "$1" -V geometry:margin=1in -s -o "$filename".odt
lowriter "$filename".odt
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment