#!/bin/sh # write header echo "" echo "\t" echo "\t" # bookmark root echo "\t
" echo "\t\t" echo "\t\t" echo "\t
" # bookmarks menu echo "\t
" echo "\t\t" echo "\t\t" echo "\t
" # get Safari Bookmarks bm="./Bookmarks.plist" grep -A1 -E '(>URLString<|>title<)' $bm | grep -v -E '(>URLString|>title|^--)' | cut -d\> -f2 | cut -d\< -f1 | while read theTitle do read theUrl echo "\t\t\t