current commit
200426.5 · initial commit of ~/bin
#!/bin/bash

case "$1" in
*.pdf)
    if [ -s "$1" ]; then
        exec pdftotext "$1" -
    else
        exec cat
    fi
    ;;
*)
    exec cat
    ;;
esac