view 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 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