#!/bin/bash plcat /Users/**YOUR USERNAME**/Library/Safari/Bookmarks.plist | grep -v key | grep -v dict | grep -v array | grep -v WebBookmark | grep -v Bookmarks | grep -v Address | grep -v Bonjour | grep -v Bookmark | grep -v History | grep -v RSS > base cat base | grep http | cut -d ">" -f2 | cut -d "<" -f1|uniq >> url cat url | cut -d "/" -f3 | cut -d "/" -f1 >> title number=`cat url | wc -l` head=1 echo "" > index.html echo "" >> index.html echo "

Links



" >> index.html while [ $head -lt $number ] ; do echourl=`cat url | head -${head} | tail -1` echotitle=`cat title | head -${head} | tail -1` echo "${echotitle}
" >> index.html head=$(( $head + 1 )) done echo "" >> index.html echo "" >> index.html rm base rm url rm title