removed redundant optional match

This commit is contained in:
celso 2023-03-06 20:13:25 -03:00
parent f09dc0b0b0
commit d535b3e8cf
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
raws="$(grep -v "Recent\(ly\)\? \(Bookmarked\|Tags\)" bookmarks.html | grep -o "<A.*</A>$" | grep -n ".*")"
titles="$(grep -on "\">.*</A>$" <<< "${raws}" | sed 's/"\?>//;s/<\/A>$//')"
titles="$(grep -on "\">.*</A>$" <<< "${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$//')"