D├ętails de snippet

doi2bib[Bash]

2019-07-02 03:07:50     Natir     doi bibtex 

  A bash function to get bibtex from doi
doi2bib ()
{
    curl -H "Accept: application/x-bibtex; charset=utf-8" https://data.crossref.org/${1}
}

# call doi2bib and write result in clipboard
doi2clip ()
{
    doi2bib ${1} | xclip -selection c
}

## Usage 
## > doi2bib 10.1093/bioinformatics/btz219 
## @article{Marijon_2019,
##     doi = {10.1093/bioinformatics/btz219},
##     url = {https://doi.org/10.1093%2Fbioinformatics%2Fbtz219},
##     year = 2019,
##     month = {mar},
##     publisher = {Oxford University Press ({OUP})},
##     author = {Pierre Marijon and Rayan Chikhi and Jean-St{\'{e}}phane Varr{\'{e}}},
##     editor = {John Hancock},
##     title = {Graph analysis of fragmented long-read bacterial genome assemblies},
##     journal = {Bioinformatics}
## }
4.75/5 - [ rating]