Skip to content

Instantly share code, notes, and snippets.

@wbzyl
Created October 24, 2011 06:29
Show Gist options
  • Save wbzyl/1308474 to your computer and use it in GitHub Desktop.
Save wbzyl/1308474 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
function usageexit() {
printf "Usage: %s output.ps [file..]\n" $(basename $0)
exit 2
}
if (($# < 2))
then
usageexit
fi
output=$1
shift
files="$*"
a2ps -M a4 -R --columns=1 --font-size=10.0 -X latin2 -E --highlight-level=normal -o $output $files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment