Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- readonly txtfile="$(mktemp "print-plaintext.XXXXXXXXXX.txt")"
- readonly pdffile="${txtfile/.txt/.pdf}"
- cat "$@" >"$txtfile"
- libreoffice --convert-to "pdf" "$txtfile"
- lpr "$pdffile"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement