Skip to content

Instantly share code, notes, and snippets.

@snosrap
Created April 2, 2019 00:39
Show Gist options
  • Save snosrap/9c9ee5f7943be800a310f20d2cd02af8 to your computer and use it in GitHub Desktop.
Save snosrap/9c9ee5f7943be800a310f20d2cd02af8 to your computer and use it in GitHub Desktop.
#!/bin/bash
for f in "$@"
do
BASENAME=`basename "$f"`
/usr/sbin/cupsfilter "$f" > "${f}.pdf" 2> "/tmp/${BASENAME}.stderr.txt"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment