[Remind-Fans] Parsing Remind's "-s" Simple Output

Karl. kmw1 at free.net.nz
Tue Oct 17 17:54:04 EDT 2006


On Tue, Oct 17, 2006 at 01:03:07PM -0500, Anthony Chivetta wrote:
> rem -s | awk '{printf("%s ",$1); for(i=6;i<=NF;i++) printf("%s ",$i);printf("\n")}'|cut -c 6-

If you're going to use cut at all, you may as well have it do the whole 
job (still not handling 'past' dates though)

rem -s | cut -c 6-10,19-

Note: only tested with the sample line given - I'm not running remind 
here to test it for real.  This was my test:
echo 'YYYY-MM-DD * * * * Event description.' | cut -c 6-10,19-

Karl.



More information about the Remind-fans mailing list