From 4f83793711272f549fec3c9dee33335c01e00140 Mon Sep 17 00:00:00 2001 From: celso Date: Mon, 6 Mar 2023 18:28:24 -0300 Subject: [PATCH] initial commit --- openbookmark.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 openbookmark.sh diff --git a/openbookmark.sh b/openbookmark.sh new file mode 100755 index 0000000..ae205bc --- /dev/null +++ b/openbookmark.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +raws="$(grep -v "Recent\(ly\)\? \(Bookmarked\|Tags\)" bookmarks.html | grep -o "$" | grep -n ".*")" + +titles="$(grep -on "\">.*$" <<< "${raws}" | sed 's/"\?>//;s/<\/A>$//')" + +selection=$(dmenu -c -l 10 -bw 3 <<< "${titles}" | grep -o "^[0-9]*:") + +palemoon "$(grep "^${selection}" <<< "${raws}" | grep -o "HREF=\".*\" ADD_DATE" | sed 's/^HREF="//;s/" ADD_DATE$//')"