diff options
author | KatolaZ <katolaz@freaknet.org> | 2020-01-07 15:35:30 +0000 |
---|---|---|
committer | KatolaZ <katolaz@freaknet.org> | 2020-01-07 15:35:30 +0000 |
commit | 400b30c947dbff3b4d8318e83ff66395fbe1f434 (patch) | |
tree | 298d7110497740aa5c9f6bb712776753b4176f52 /bib2tsv | |
parent | 72db941b1ccaf248a2d0823fc4f07df85e2b35c4 (diff) |
remove leading blanks from fields
Diffstat (limited to 'bib2tsv')
-rwxr-xr-x | bib2tsv | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -12,15 +12,18 @@ cat | awk ' } /^@.*\{/{ - cur =$0 + gsub("^[[:blank:]]+", "") + cur=$0 } /^\}[ ]*$/{ - print cur"\t"$0 + gsub("/^[[:blank:]]+/", "") + print cur"\t"$0"\n" } /^[ ]*.*=.*/{ + gsub("^[[:blank:]]+", "") cur=cur"\t"$0; } ' |