insanum/gcalcli — pull request #1 by markgraf (2012-05-11 12:20:50+00:00)
Title: tab separated output for agenda

Hello Eric!

Pull request as you requested :-)
I added a function producing tab-separated output for 'agenda'.
So now one can do:

#!/bin/bash
gcalcli --tsv agenda | grep -v . > tempfile
while IFS=$'\t' read -r mydate mystart myend mytitle myplace myevent; do
whatever ...
done < tempfile

Issues:
* _tsv always prints an empty line as the last line. Why? (that's why i grep -v above)
* I need a better way to escape special chars in event.content.text