From ec97cc5e9c5d8b74786ac93b40b47af260c02e48 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 13 Sep 2021 19:38:45 +0200 Subject: [PATCH] update from obsolete UNSTRING sed command --- widgets.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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" ] \ -- 2.39.2