X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Flist.sh;h=ab67fbd4edefcef625c3980dd003a64e385eb5cc;hp=421ff3a4a51d3eaef3577a36e9eb7f1c82ba73b7;hb=a6e3da877a73be739ac96b12d9cde2190b24a423;hpb=baf5238a2cb8a6287d31f196ebdbeb11d316226c;ds=sidebyside diff --git a/cards/list.sh b/cards/list.sh index 421ff3a..ab67fbd 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" }