X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=f825c12c8213678ab4bb74caab25a61cba128bea;hb=65f7fdd29c51ce924260a9aae21f29fa15154dcb;hp=35b8b70ed349a9414e020e1789df3dc4176aa301;hpb=da22ff20e277c767390c172beee569b977f8beee;p=serve0 diff --git a/widgets.sh b/widgets.sh index 35b8b70..f825c12 100644 --- a/widgets.sh +++ b/widgets.sh @@ -16,9 +16,10 @@ if [ ! -s "$c_tags" -o ! -s "$c_tagcategories" ] \ then w_tags="$( cn=1 find "$_DATA/" -path '*/.index/meta' -print0 \ - | xargs -r0 sed -r ' + | xargs -0 -r sed -E ' s;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; - s;,;\n;g;'"$UNSTRING" \ + s;,;\n;g;' \ + | UNSTRING \ | { sort; printf '\n'; } \ | while read -r tag; do [ "$tag" = "$otag" ] \