Show some trivia related to the current date

calendar
Contrary to logic, typing calendar won't show a calendar, that's the job of cal. Typing calendar will show some trivia related to the current date. Tested against many Linux distros and FreeBSD.
Sample Output
ene 29  N'oubliez pas les Gildas !
ene 29  Bonne fte aux Sulpice !
ene 30  Franklin Delano Roosevelt born in Hyde Park, New York, 1882
ene 30  Mohandas Gandhi assassinated in New Delhi by Hindu fanatic, 1948
ene 30  Tet Offensive, 1968
ene 30  Lightnin' Hopkins, the most-recorded blues artist ever, dies, 1982
ene 30  Aujourd'hui, c'est la St(e) Martine.
ene 30  Ernennung von Hitler zum Reichskanzler, 1933

6
By: vlan7
2010-01-29 11:17:11

These Might Interest You

  • Create a directory named with the current date in ISO 8601 format (yyyy-mm-dd). Useful for storing backups by date. The --iso switch may only work with GNU date, can use format string argument for other date versions.


    3
    mkdir `date --iso`
    hal · 2009-05-15 12:30:10 3
  • Show you the list of files of current directory sorted by date youngest to oldest, remove the 'r' if you want it in the otherway.


    2
    ls -lrt
    guidouil · 2009-02-17 19:51:08 2
  • Not a discovery but a useful one nontheless. In the above example date format is 'yyyymmdd'. For other possible formats see 'man date'. This command can be also very convenient when aliased to some meaningful name: alias mkdd='mkdir $(date +%Y%m%d)'


    11
    mkdir $(date +%Y%m%d)
    thebodzio · 2009-04-25 14:16:45 4
  • Get the first 10 google results form a querry, but showing only the urls from the results. Use + to search diferent terms, ex: commandlinefu+google . Show Sample Output


    1
    gg(){ lynx -dump http://www.google.com/search?q=$@ | sed '/[0-9]*\..http:\/\/www.google.com\/search?q=related:/!d;s/...[0-9]*\..http:\/\/www.google.com\/search?q=related://;s/&hl=//';}
    chon8a · 2012-04-21 03:31:26 3

What Others Think

Lightnin' Hopkins died today :( Give that man a cigar
subversionx · 434 weeks and 2 days ago
Well according to the command output he died 1-30-1982
vlan7 · 434 weeks and 2 days ago
man! that's so cool - why haven't you told me before?
bubo · 434 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: