Created
February 9, 2018 07:18
-
-
Save rec3141/b2cc9d192d214687b575ab0cce02f5f8 to your computer and use it in GitHub Desktop.
bash reference manager: get DOI from titles
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
while read line; do title=`echo $line | sed 's/ /+/g'`; curl -s https://api.crossref.org/works?query.title=$title&rows=1 | tr ',' '\n' | tr -d '"\' | grep ^DOI | cut -f2- -d':'; done < titles.txt > titles.bib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment