Skip to content

Instantly share code, notes, and snippets.

@shichao-an shichao-an/printout.sh

Last active Aug 29, 2015
Embed
What would you like to do?
Source code printout
#!/bin/bash
# -r: landscape
# -2: two columns
# --highlight: syntax highlight
enscript -r -2 --highlight --line-numbers -o - $(ls *{.c,.h}) | ps2pdf - printout.pdf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.