The tutorial is quite good, but somewhat long, and lacks a few specific examples, so I decided to write just what I read in that tutorial, mixed with the uses I am putting it to, so it is more a Gcal use cases than a full blown tutorial like that.
First steps: Installing and month displays: Well, the first step is to have gcal installed. If you are on a Linux box, it is quite easy, as it is in all repositories.
sudo apt-get install gcalNow you can run it, to get a calendar view of the current month (gcal). You can also view three months (gcal .), or a full year (gcal 2010). The command -b N selects the number of month rows to display (gcal -b 4). You can also select a specific year, or range of months (gcal 3-5 2009). There is also an alternate month view (gcal -i). Below you can see this examples in a composition of terminal captures
0 This appears every day!
20100410 This only on 2010, April 11th
2010apr01#99 All April
2010aprsa1#sa9.7 April saturdays
You can find all range modifiers here.
How to change it? As usual, you can invoke gcal with a change for that. An example could be --date-format='%>3w#K%1%Y%>02*M%>02*D%2' I can hear you saying d'oh! But it is not as bad as it seems. It breaks down as
%>3w#K 3 letters of the weekday
%1 Start highlighting
%Y Year number
%>02*M Fix 2 digits in month number
%>02*D Fix 2 digits in month day number
%2 End highlighting.
; latitude 41.4798
; longitude 2.3188 for gcal add 2 trailing zeros
; height 0
; Winter time Barcelona: GMT+1 Summer time Barcelona: GMT+2
$x=~Sunrise %o$c,$w | Sunset %s$c,$w ~Daylength %u$c,$w | Nightlength %z$c,$w
$y=~Sunrise %o$c,$s | Sunset %s$c,$s ~Daylength %u$c,$s | Nightlength %z$c,$s
; Winter time selector
; Summer time selector
; What will be written, through selectors.
$p $a $x
$p $b $y
Click to enlarge
Next week I'll show you how to use sed to add colours to your events, and how to set at to send you an email every day with your scheduled tasks. You can see a sample from my colour scheme below.
sed (stream editor) to colorise script output in Linux
Unpacking my Ben NanoNote
My first port to the Ben NanoNote: gnugo
Another Ben Nanonote port: pmars
Nanonote ports: Yacas, 4th (forth compiler and interpreter)