Skip to content

Instantly share code, notes, and snippets.

Johannes Bauer tatome

View GitHub Profile
View shrinkpdf.sh
#!/bin/bash
if [ $# -lt 2 ] || [ $# -gt 3 ]; then
echo usage: shrinkpdf \<filename\> \<resolution\> \[\<output\>\]
exit
fi
if [ ! -e "$1" ]; then
echo "$1" does not exist. Exiting.
exit
You can’t perform that action at this time.