Skip to content

Instantly share code, notes, and snippets.

@bessarabov
Created December 10, 2013 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bessarabov/7890748 to your computer and use it in GitHub Desktop.
Save bessarabov/7890748 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo ''
date "+%Y-%m-%d %H:%M:%S"
echo ''
cal
echo ''
perl -e 'my @lt = localtime();
my $month = $lt[4]+1;
my $year = $lt[5]+1900;
if ($month == 12) {
$month = 1;
$year += 1;
} else {
$month++;
}
system "cal $month $year"; '
echo ''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment