Skip to content

Instantly share code, notes, and snippets.

@andreas5232
Last active January 9, 2019 21:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andreas5232/57997d5fb43e49338d5a140dc9627d31 to your computer and use it in GitHub Desktop.
Save andreas5232/57997d5fb43e49338d5a140dc9627d31 to your computer and use it in GitHub Desktop.
LaTeX URL references to PDF scrollshot
#!/bin/bash
cat quellen.bib | grep "howpublished" | grep -o -P "url{[a-zA-Z0-9\/\%.\-_\:\?=]*}" | sed -e 's/url{//g' | sed -e 's/}//g' | xargs -I '{}' sh -c 'wkhtmltopdf --print-media-type "{}" $(echo {}.pdf | sed -e "s/[^A-Za-z0-9._-]/_/g" )'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment