From: Paul Hänsch Date: Mon, 13 Sep 2021 17:38:45 +0000 (+0200) Subject: update from obsolete UNSTRING sed command X-Git-Url: http://git.plutz.net/?p=serve0;a=commitdiff_plain;h=ec97cc5e9c5d8b74786ac93b40b47af260c02e48 update from obsolete UNSTRING sed command --- diff --git a/widgets.sh b/widgets.sh index 35b8b70..f79d457 100644 --- a/widgets.sh +++ b/widgets.sh @@ -15,10 +15,11 @@ if [ ! -s "$c_tags" -o ! -s "$c_tagcategories" ] \ || [ "$(find "$_DATA/" -path '*/.index/meta' -newer "$c_tags")" ] then w_tags="$( cn=1 - find "$_DATA/" -path '*/.index/meta' -print0 \ - | xargs -r0 sed -r ' - s;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; - s;,;\n;g;'"$UNSTRING" \ + find "$_DATA/" -path '*/.index/meta' -exec \ + sed -E 's;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; + s;,;\n;g;' \ + '{}' + \ + | UNSTRING \ | { sort; printf '\n'; } \ | while read -r tag; do [ "$tag" = "$otag" ] \