-
-
Save svaksha/3ee972585f9573676f17ce50c28570e4 to your computer and use it in GitHub Desktop.
Returns a BibTeX entry for one or more given DOIs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Returns a BibTeX (www.bibtex.org) entry for one or more given DOIs | |
# (https://www.doi.org/). | |
# | |
# Call it like this: | |
# | |
# $ doi2bibtex.sh 10.1093/bioinformatics/btu533 | |
# | |
# Can also be used for several DOIs at once: | |
# | |
# $ doi2bibtex.sh 10.1093/bioinformatics/btu533 10.1038/sj.embor.7400538 | |
for DOI in "$@" | |
do | |
curl -H "Accept: application/x-bibtex" https://data.crossref.org/${DOI} | |
echo "" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment