tFix author name abbreviation command on BSD sed - scholarref - tools for DOI and BiBTeX reference extraction, fetching, and parsing
HTML git clone git://src.adamsgaard.dk/scholarref
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit d184cceb4584a7f3e225da5e1c35f5d3afee89c7
DIR parent 1b8f7c07bb8fc74a5478012a792ad90b245891a0
HTML Author: Anders Damsgaard <anders@adamsgaard.dk>
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(-)
---
DIR 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() {