diff options
Diffstat (limited to 'bib2tsv')
-rwxr-xr-x | bib2tsv | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -0,0 +1,26 @@ +#!/bin/sh + + +# +# convert a bibtex entry into a single record (tsv) +# + +cat | awk ' + +/^%/{ + next +} + +/^@.*\{/{ + cur =$0 +} + + +/^\}[ ]*$/{ + print cur"\t"$0 +} + +/^[ ]*.*=.*/{ + cur=cur"\t"$0; +} +' |