# Latest change: Mi Sep 17 22:15:00 CEST 2014 # SOURCE=http://c3d2.de/reminders # this script: http://www.guckes.net/sed/scripts/remind.sed # command: wget $SOURCE -O - | sed -f ~/remind.sed | sort -n | less -S # by Sven Guckes 2014-08-27 # uniq URLs: # grep -o 'http[^ ]*' reminders | sort | uniq | less -S # converting month short names to numbers: s/Jan/01/ s/Feb/02/ s/Mar/03/ s/Apr/04/ s/May/05/ s/Jun/06/ s/Jul/07/ s/Aug/08/ s/Sep/09/ s/Oct/10/ s/Nov/11/ s/Dec/12/ # changing the date descriptions of reminders: # input: REM Sep 24 2013 # output: 2013-09-24 s/^REM \([01][0-9]\) \([0-9]\) \(201[0-9]\)/\3-\1-0\2/ s/^REM \([01][0-9]\) \([1-3][0-9]\) \(201[0-9]\)/\3-\1-\2/ # now they should all be in the format YYYY-MM-DD # adding a leading zeo to hours+minutes # input: 9:00 # output: 09:00 s/AT \(0-9:\)/AT 0\1/ # too all lines *without* an "AT" entry # add a "blank" one with "--:--": /AT /!s/^....-..-../& AT --:--/ #EOF