From e8084679cbbca13a3427898d289a69b1f0a59a8b Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 2 Mar 2023 14:19:56 +0100 Subject: idea up --- .local/bin/idea | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to '.local/bin') diff --git a/.local/bin/idea b/.local/bin/idea index b5fc477..fc0f244 100755 --- a/.local/bin/idea +++ b/.local/bin/idea @@ -8,16 +8,13 @@ else thought="$*" fi -thought_a="$(printf "%s" "${thought}" | sed "s/\n/
/")" -exit +thought="$(echo -n "${thought}" | sed '{s/$/
\\/;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>\ \t\t\t\t

\ -\t\t\t\t\t'"${thought_a}"'\ +'"${thought}"' \t\t\t\t<\/p>\ ' -echo "%s" "${html_fmt}" -exit case $(hostname -s) in mother|po-rbo) sed="sed -i" ;; fbsd-tp) sed="sed -i ''" ;; -- cgit v1.2.3