How-to display the Orthodox Easter date from CLI

I do most of my work in the CLI and some of the commands I use often are cal or ncal. Both commands will display a simple calendar, highlighting the current day.

root@securitoro:~# cal
   February 2017
Su Mo Tu We Th Fr Sa
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28

root@securitoro:~# ncal
    February 2017
Su     5 12 19 26
Mo     6 13 20 27
Tu     7 14 21 28
We  1  8 15 22
Th  2  9 16 23
Fr  3 10 17 24
Sa  4 11 18 25

One interesting command argument I found for ncal is -o that will display the Orthodox Easter day for the current year.

root@securitoro:~# ncal -o
April 16 2017

You can even find it out for past years.

root@securitoro:~# ncal -o 1970
April 26 1970

I recommend to check the complete manual page for cal to see the full description.

root@securitoro:~# man cal
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: