Mercurial > hg > paul
view bin/v.sh @ 6:a6d23e7fab01 default tip
final, all sigs on multiple pages
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Thu, 08 Oct 2026 12:51:14 +0100 |
| parents | 2aa53823fb21 |
| children |
line wrap: on
line source
#!/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
