X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Flist.sh;h=33ca99110ebdb4cf37ee81e9d42f00b816f3d146;hb=369cfbad801d25084da063f8ad3250dee9442fa9;hp=ce8c1ab50929901269d365c374b7c7799a317f31;hpb=26149592a7023d89ac39cd88285d49f7fd28f71c;p=lobster diff --git a/cards/list.sh b/cards/list.sh index ce8c1ab..33ca991 100755 --- a/cards/list.sh +++ b/cards/list.sh @@ -113,8 +113,7 @@ filter_cards(){ done for cardfile in "${_DATA}"/vcard/*.vcf; do - printf '%s\n' "$cardfile" - cat "$cardfile" + printf '%s\n' "$cardfile" "$(grep -vxE " *${CR}?" "$cardfile")" done \ | sed -En ':X; /\nEND;?:VCARD\r?$/!{ N; bX; }; h; s;\n.*$;;; x; s;^[^\n]+\n;;; '"$upcase""$fex"