No description
| LICENSE | Added a LICENSE. | |
| pandy.sh | Initial commit. | |
| README.md | Initial commit. | |
pandy
pandoc a pandoc wrapper to convert webpages to some other formats such as:
- org-mode
- Manpage
- LaTeX
Installation
- Clone it.
- Copy the script to somewhere on your PATH such as
/usr/local/bin. chmod +xit, ex:
chmod +x /usr/local/bin/pandy.sh
Usage
usage: pandy.sh [-o] [-i] [-g] [-l] [-m] [-p] [-v] [-v] [-f filename] URL
Pandoc wrapper that downloads a webpage from URL and converts it to another format.
OPTIONS:
-o convert to org-mode.
-g convert it to Manpage (groff).
-l convert it to LaTeX.
-m convert it to Markdown.
-p convert it to PDF.
-f save output to filename.
-h show this help.
Example #1 - convert to PDF:
./pandy.sh -p -f return-of-the-sorcerer.pdf http://www.eldritchdark.com/writings/short-stories/183/the-return-of-the-sorcerer
Example #2 - convert to Manpage format and send it to man:
./pandy.sh -g http://www.eldritchdark.com/writings/short-stories/183/the-return-of-the-sorcerer | man -l -