From 1b60162cdd40f964fed3d943d95601f42479b5de Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 6 Jan 2021 12:03:58 +0100 Subject: [PATCH] portability fix --- pdiread.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(){ -- 2.39.2