SHARE
TWEET

Untitled

a guest Oct 19th, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2.  
  3. readonly txtfile="$(mktemp "print-plaintext.XXXXXXXXXX.txt")"
  4. readonly pdffile="${txtfile/.txt/.pdf}"
  5.  
  6. cat "$@" >"$txtfile"
  7. libreoffice --convert-to "pdf" "$txtfile"
  8. lpr "$pdffile"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top