#! /bin/sh
# Script to generate (invalid) HTML file from places.sqlite DB
# Copyright (C) 2009 Matous J. Fialka,
\n") } { gsub($3, /^[[:blank:]]+/, "") gsub($4, /^[[:blank:]]+/, "") gsub($3, /[[:blank:]]+$/, "") gsub($4, /[[:blank:]]+$/, ""); printf("%07d: %s\nRemarks: %s\nRaw URL: %s\n\n", ($1), ($2), ($3 != "") ? $3 : ("Untitled #" ++u), ($4 == $3) ? "None" : (($4 != "") ? $4 : "None"), ($2)) } END { printf("\n") exit(0); }' if [ -w /tmp/places.sqlite.tmp ]; then rm -f /tmp/places.sqlite.tmp || exit 3 fi exit 0