From: Paul Hänsch Date: Wed, 6 Jan 2021 11:03:58 +0000 (+0100) Subject: portability fix X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=1b60162cdd40f964fed3d943d95601f42479b5de;p=lobster portability fix --- 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(){