annotate bin/make_new_tabs.sh @ 5:bca2a490a6f4

updated
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 16 Sep 2026 19:50:53 +0100
parents f9d4af74e3d0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
f9d4af74e3d0 convert firefox bookmarks file to xml, e.g. for making a new ~/u/New_Tabs.py
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/bash
f9d4af74e3d0 convert firefox bookmarks file to xml, e.g. for making a new ~/u/New_Tabs.py
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 # Usage: make_new_tabs.sh ~/u/bookmarks-from-saved-closed-tab-groups_... > ~/New_Tabs.xml
f9d4af74e3d0 convert firefox bookmarks file to xml, e.g. for making a new ~/u/New_Tabs.py
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 sed 's/&nbsp;/ /g;s/&/&amp;/g' < "$1" |tr -s '\302\240' ' ' |tidy -asxml 2>/dev/null \
f9d4af74e3d0 convert firefox bookmarks file to xml, e.g. for making a new ~/u/New_Tabs.py
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 |saxon97 - D:/lib/xml/bookmarks_to_xml.xsl|normXML -w |lxsort body div .