Created
April 25, 2014 01:50
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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