Skip to content

Instantly share code, notes, and snippets.

@shichao-an
Last active August 29, 2015 14:01
Show Gist options
  • Save shichao-an/23e9c5879b5ba30621c4 to your computer and use it in GitHub Desktop.
Save shichao-an/23e9c5879b5ba30621c4 to your computer and use it in GitHub Desktop.
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