16 lines
392 B
Bash
Executable File
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
|