tFix author name abbreviation command on BSD sed - scholarref - tools for DOI a… | |
git clone git://src.adamsgaard.dk/scholarref | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d184cceb4584a7f3e225da5e1c35f5d3afee89c7 | |
parent 1b8f7c07bb8fc74a5478012a792ad90b245891a0 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Fri, 15 Nov 2019 11:42:39 +0100 | |
Fix author name abbreviation command on BSD sed | |
Diffstat: | |
M getref | 3 ++- | |
1 file changed, 2 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/getref b/getref | |
t@@ -87,7 +87,8 @@ abbreviate_journal_name() { | |
} | |
abbreviate_author_name() { | |
- sed '/author = / { s/\([A-Z]\)[A-Za-z]* \([A-Z]\)/\1. \2/g }' | |
+ sed -e '/author = /{' -e 's/\([A-Z]\)[A-Za-z]* \([A-Z]\)/\1. \2/g' -e … | |
+ #sed '/author = /;s/\([A-Z]\)[A-Za-z]* \([A-Z]\)/\1. \2/g' | |
} | |
strip_doi() { |