[Remind-Fans] displaying AT time
Andrew Ho
andrewlkho at gmail.com
Fri Dec 22 06:54:20 EST 2006
Paul Pelzl <pelzlpj at eecs.umich.edu> wrote [06-12-21 17:37]:
>On Thu, Dec 21, 2006 at 09:47:07PM +0000, Andrew Ho wrote:
>> I'm trying to get 'rem' to display the time of a reminder
>
> $ rem -s -b1 | grep `date +"%y/%m/%d"` | cut -d " " -f "6-"
Thanks for the idea, Paul. Based on that, I've decided to go with a shell
script (that accepts, for example, the date as input). The crux of it is:
rem -s -b1 | \
awk '/2006\/12\/22/ { print substr($0, length($1 $2 $3 $4 $5) + 6) }' | \
sed -e 's/^\([0-9]\{2\}\):/\1/' -e 's/^\([A-Za-z]\)/ -- \1/'
The first sed command is to remove the colon from the time output (on an
aesthetic level, it's something I'm more used to and thus prefer), whilst the
second aligns the reminders without a time.
Regards,
Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
URL: <http://lists.roaringpenguin.com/pipermail/remind-fans/attachments/20061222/02f9f76e/attachment.pgp>
More information about the Remind-fans
mailing list