From d535b3e8cfe1c51d028f2e4806cf0f20b2bd3aa0 Mon Sep 17 00:00:00 2001 From: celso Date: Mon, 6 Mar 2023 20:13:25 -0300 Subject: [PATCH] removed redundant optional match --- openbookmark.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbookmark.sh b/openbookmark.sh index 88f721d..0a2f1be 100755 --- a/openbookmark.sh +++ b/openbookmark.sh @@ -2,7 +2,7 @@ raws="$(grep -v "Recent\(ly\)\? \(Bookmarked\|Tags\)" bookmarks.html | grep -o "$" | grep -n ".*")" -titles="$(grep -on "\">.*$" <<< "${raws}" | sed 's/"\?>//;s/<\/A>$//')" +titles="$(grep -on "\">.*$" <<< "${raws}" | sed 's/">//;s/<\/A>$//')" selection=$(dmenu -c -l 10 -bw 3 <<< "${titles}" | grep -o "^[0-9]*:") url="$(grep "^${selection}" <<< "${raws}" | grep -o "HREF=\".*\" ADD_DATE" | sed 's/^HREF="//;s/" ADD_DATE$//')"