X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=pdiread.sh;h=6f15658dc912c72a187c1559328e1e77a763b741;hp=8118318d3d4bdd4e2793d468c037b28b5006588f;hb=c0302919c54331fc9fe3785f7d2a44e639e1bba0;hpb=751d678a319fdf0730023e06e375565f8039aee3 diff --git a/pdiread.sh b/pdiread.sh index 8118318..6f15658 100755 --- a/pdiread.sh +++ b/pdiread.sh @@ -32,7 +32,7 @@ pdi_load() { # Usage example: # data="$(pdi_load file.vcf)" - sed -En ' + sed -srn ' # === Read entire file into buffer === :X $bY; N; bX; :Y s;^.*$;\n&\n;; @@ -100,7 +100,7 @@ pdi_load() { # === Update obsolete LABEL property === s;\nLABEL((\;[A-Za-z0-9-]+|\;[A-Za-z0-9-]+=([^;,:"]+|"[^"]+")(,[^;,:"]+|,"[^"]+")*)*):(.*)\n;\nADR\1\;LABEL="\5":\n;g; - p;' "$1" + p;' "$@" } pdi_count(){