X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Flist.sh;h=77c96b00019291f28066e0bf9d6123850ef9b13e;hp=421ff3a4a51d3eaef3577a36e9eb7f1c82ba73b7;hb=3ea5e66a2f2cac72cfde653f56330370e0b170de;hpb=8e0acb145101c4cb570e5c8bfb9ffe18a9b393a0 diff --git a/cards/list.sh b/cards/list.sh index 421ff3a..77c96b0 100755 --- a/cards/list.sh +++ b/cards/list.sh @@ -149,7 +149,7 @@ filter_cards(){ printf '%s\n' "$cardfile" cat "$cardfile" done \ - | sed -En ':X; /\nEND:VCARD\r?$/!{ N; bX; }; h; s;\n.*$;;; x; s;^[^\n]+\n;;; + | sed -nE ':X; /\nEND\;?:VCARD\r?$/!{ N; bX; }; h; s;\n.*$;;; x; s;^[^\n]+\n;;; '"$upcase""$fex" }