view bin/acut @ 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

#!/bin/bash
# Use awk to do cut -d whitespace
declare ff=("$@")
join_array() { local IFS=\$; echo "$*"; }
s=$(join_array "${ff[@]}")
awk '{print '\$${s/\$/,\$}\}