Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"s"
#!/bin/sh
DATE=$(date +%Y%m%d)
STATUSFILE="$HOME/Status/$DATE"
if [ "$1"x = "x" ]; then
cat "$STATUSFILE"
elif [ "$1"x = "editx" ]; then
"$EDITOR" "$STATUSFILE"
else
echo "$@" >> "$STATUSFILE"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.