summaryrefslogtreecommitdiff
path: root/dot/local/bin/lptext
blob: 645e4a4deb9b9759aac7d382061b664343f1b739 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
case "$1" in
    -*|'') ;;
    *)  echo "Warning: $0: ignoring stdin and using first argument as input ($1)" >&2
        exec < "$1"
        shift
        ;;
esac
text2png | lp "$@"