Mercurial > hg > paul
annotate bin/make_new_tabs.sh @ 2:f9d4af74e3d0
convert firefox bookmarks file to xml, e.g. for making a new ~/u/New_Tabs.py
| author | Henry S. Thompson <ht@inf.ed.ac.uk> |
|---|---|
| date | Tue, 18 Aug 2026 15:38:14 +0100 |
| parents | |
| children |
| 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/ / /g;s/&/&/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 . |
