File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 11The MIT License (MIT)
22
3- Copyright (c) 2016 Felipe Silveira de Souza Schneider
3+ Copyright (c) 2016--2018 Felipe Silveira de Souza Schneider
44
55Permission is hereby granted, free of charge, to any person obtaining a copy
66of this software and associated documentation files (the "Software"), to deal
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ any more.
1414## Usage
1515
1616 $ doi2bib 10.1021/la203078w 10.1103/PhysRev.140.A1133
17+
1718 @article{Cabaleiro_Lago_2012,
1819 title={The Effect of Nanoparticles on Amyloid Aggregation Depends on the Protein Stability and Intrinsic Aggregation Rate},
1920 volume={28},
Original file line number Diff line number Diff line change 11#! /bin/bash
22# The MIT License (MIT)
33#
4- # Copyright (c) 2016 Felipe Silveira de Souza Schneider
4+ # Copyright (c) 2016--2018 Felipe Silveira de Souza Schneider
55#
66# Permission is hereby granted, free of charge, to any person obtaining a copy
77# of this software and associated documentation files (the "Software"), to deal
2121# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2222# SOFTWARE.
2323#
24- # ? doi2bib 1.0
24+ # ? doi2bib 1.1
2525# ?
2626# ? Convert Digital Object Identifier (DOI) to BibTeX using crosscite.org.
2727# ? DOIs are received and the corresponding BibTeX entries are output.
@@ -73,7 +73,8 @@ for doi in "$@"; do
7373
7474 # we retrieve the data from http://dx.doi.org/
7575 curl -s -LH " Accept: text/bibliography; style=bibtex" " http://dx.doi.org/${doi} " | \
76- sed -e ' s/^ *//' \
77- -e ' s/, /,\n /g' \
78- -e ' s/}}$/}\n}\n/'
76+ sed -e $' s/^ *//' \
77+ -e $' s/}, /},\\\n /g' \
78+ -e $' s/, /,\\\n /1' \
79+ -e $' s/}}$/}\\\n }\\\n /'
7980done
You can’t perform that action at this time.
0 commit comments