Mercurial > hg > paul
diff bin/v.sh @ 0:2aa53823fb21
new repo
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Sat, 06 Jun 2026 10:19:04 +0100 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/v.sh Sat Jun 06 10:19:04 2026 +0100 @@ -0,0 +1,18 @@ +#!/usr/bin/bash +# Search for a Tab, open or closed, in static record of tabs in ~/u: +# Old_Tabs for the as-yet not-in-a-OneTab-group OneTab +# New_Tabs for the result of running save tab javascript from +# e433d14e8253a1c3e061f52a58550630.js in Firefox Browser Console (Ctrl+Shift+J) +# and then converting to XML with ??? +# Usage: v.sh [-i] string +if [ "$1" = "-i" ] +then + echo "Apologies, -i not implemented yet" 1>&2 + shift +fi +d=/home/ht/u +p="'"$1"'" +for f in ${d}/New_Tabs.xml ${d}/Old_Tabs.xml +do + lxprintf -e "div[p/a[contains(@href,$p) or contains(.,$p)]]" "%s: %s\n" "./p/a[contains(@href,$p) or contains(.,$p)]" './title' $f +done
