Mercurial > hg > paul
view bin/watched.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 | 2aa53823fb21 |
| children |
line wrap: on
line source
#!/usr/bin/bash find /e/Videos -iname '*watched*' | rev | cut -f 1 -d '/' | rev | tr -s ' \t' _ | tr '\n' '\000' | xargs -0 -I ^ -n 1 echo "^" "^" | while read g f; do printf "%s\t%s\n" "$(echo "$g" | grep -Eo 'watched-.{10,10}')" "$f"; done | sort -k1,1
