|
0
|
1 #!/usr/bin/bash
|
|
|
2 # Search for a Tab, open or closed, in static record of tabs in ~/u:
|
|
|
3 # Old_Tabs for the as-yet not-in-a-OneTab-group OneTab
|
|
|
4 # New_Tabs for the result of running save tab javascript from
|
|
|
5 # e433d14e8253a1c3e061f52a58550630.js in Firefox Browser Console (Ctrl+Shift+J)
|
|
|
6 # and then converting to XML with ???
|
|
|
7 # Usage: v.sh [-i] string
|
|
|
8 if [ "$1" = "-i" ]
|
|
|
9 then
|
|
|
10 echo "Apologies, -i not implemented yet" 1>&2
|
|
|
11 shift
|
|
|
12 fi
|
|
|
13 d=/home/ht/u
|
|
|
14 p="'"$1"'"
|
|
|
15 for f in ${d}/New_Tabs.xml ${d}/Old_Tabs.xml
|
|
|
16 do
|
|
|
17 lxprintf -e "div[p/a[contains(@href,$p) or contains(.,$p)]]" "%s: %s\n" "./p/a[contains(@href,$p) or contains(.,$p)]" './title' $f
|
|
|
18 done
|