!/bin/sh

j - journal with single-line entries with timestamps

SPDX-FileCopyrightText: 2023 Daniel Kalak

SPDX-License-Identifier: GPL-3.0-or-later

This program is inspired by the article "Simple Tools" by James Card,

available at gemini://jdcard.com/SimpleTools.gmi (among others). See

gemini://dkalak.de/txt/journal.txt for more inforamtion.

journal="${JOURNAL:?}"

[ "${line:="$*"}" ] || IFS= read -r line

[ "$line" ] && printf '%s %s\n' "$(date -Iseconds)" "$line" >> "$journal"

tail -n5 "$journal"

Proxy Information
Original URL
gemini://dkalak.de/software/j.sh
Status Code
Success (20)
Meta
text/plain
Capsule Response Time
155.652399 milliseconds
Gemini-to-HTML Time
0.323173 milliseconds

This content has been proxied by September (ba2dc).