initial commit

This commit is contained in:
celso 2023-03-06 18:28:24 -03:00
commit 4f83793711
1 changed files with 9 additions and 0 deletions

9
openbookmark.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
raws="$(grep -v "Recent\(ly\)\? \(Bookmarked\|Tags\)" bookmarks.html | grep -o "<A.*</A>$" | grep -n ".*")"
titles="$(grep -on "\">.*</A>$" <<< "${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$//')"