dotfiles/.bin/remindview
2024-02-14 07:55:58 +01:00

16 lines
392 B
Bash
Executable File

#!/bin/sh
remind -n ~sdk/.reminders \
| sort -n \
| head -n 10 \
| while read -r line
do
echo "Input: $line"
echo "$line" \
| awk '$1 == /^[0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]/
{ print "Date: "$1 }
$2 == /^[0-9][0-9]:[0-9][0-9][ap]m/
{ print "Time: "$2 }
{ $1=""; $2=""; print "Text: "$0 }'
done