Skip to content

Instantly share code, notes, and snippets.

@sunhwan
sunhwan / doi2bib
Created June 24, 2016 15:30 — forked from achabotl/doi2bib
doi2bib
#!/bin/sh
if [[ "${1}" == "http"* ]] ; then
doi="${1}"
else
doi="http://dx.doi.org/${1}"
fi
# Stopped working around 2015-10-04.
# curl -sLH "Accept: text/bibliography; style=bibtex" "${doi}" | sed 's/^ *//'