Skip to content

Instantly share code, notes, and snippets.

Ben Paretzky

  • SUNY Oswego
  • Oswego, NY
Block or report user

Report or block Paretzky

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Paretzky / gist:4978714
Created Feb 18, 2013
Set/List of LaTeX packages used by *tex files in the current directory
View gist:4978714
find . -iname "*tex" -exec grep usepackage {} + | grep -Po "{[^}]+}$" | grep -oP "[^{|}]+" | sort -u
Paretzky / gist:4105017
Created Nov 18, 2012
Total the Number of Pages in All Pdf's in the Current Directory Recursively
View gist:4105017
find . -type f -iname "*pdf" | xargs -0 -d "\n" -n 1 pdfinfo 2> /dev/null | grep Pages | grep -Eo "[[:digit:]]+" | tr "\n" "+" | grep -Eo "[[:digit:]]+(\+[[:digit:]]+)+" | bc
You can’t perform that action at this time.