From 242f0e777eeeacaf548b0c5e7a20acf5b3a6ac09 Mon Sep 17 00:00:00 2001
From: Joe
\\/;s/^/\\t\\t\\t\\t\\t/;};${s/
\\$/\\/;p;x;};1d')"
-date=$(date '+%a, %d %b %Y %T')
-html_fmt='\t\t\t\t'"${date}"'<\/h3>\
+thought="$(printf "%s" "${thought}" | sed '{s#^#\\t\\t\\t\\t\\t#;s#^\\t\\t\\t\\t\\t$#\\t\\t\\t\\t
#;s#$#\\#;}')" +# thought="$(echo -n "${thought}" | sed '{s/$$/<\/p>\n
/;s/$/\\/;s/^/\\t\\t\\t\\t\\t/;};${s/
\\$/\\/;p;x;};1d')"
+date=$(date '+%a, %d %b %Y %H:%M')
+html_fmt='\t\t\t\t
\ '"${thought}"' -\t\t\t\t<\/p>\ +\t\t\t\t
\ ' case $(hostname -s) in mother|po-rbo) sed="sed -i" ;; fbsd-tp) sed="sed -i ''" ;; esac -$sed -e '/$/{n;s/^/'"${html_fmt}"'/;}' \ +$sed -e '/$/{n;s#^#'"${html_fmt}"'#;}' \ "$HOME"/dev/web/joe-www/thoughts.html git -C "$HOME"/dev/web/joe-www add -u git -C "$HOME"/dev/web/joe-www commit -m "Thought: ${date}" -- cgit v1.2.3