Tuesday, May 17, 2011

Nameday (with Slovak names) (bash, perl, python)

This is a simple script to show whos nameday is today...

This is offline script, which uses system date to determine who has nameday.

Scripts output looks like:
$ nameday
Sun 23 May 2010 > Želmíra
Tmrw Ela



#!/bin/bash

name(){ # function called from the bottom of the script
 case "$date" in
 "01-02" ) echo "Alexandra, Karina";;
 "01-03" ) echo "Daniela";;
 "01-04" ) echo "Drahoslav";;
 "01-05" ) echo "Andrea";;
 "01-06" ) echo "Antónia";;
 "01-07" ) echo "Bohuslava";;
 "01-08" ) echo "Severín";;
 "01-09" ) echo "Alexej";;
 "01-10" ) echo "Dáša";;
 "01-11" ) echo "Malvína";;
 "01-12" ) echo "Ernest";;
 "01-13" ) echo "Rastislav";;
 "01-14" ) echo "Radovan";;
 "01-15" ) echo "Dobroslav";;
 "01-16" ) echo "Kristína";;
 "01-17" ) echo "Nataša";;
 "01-18" ) echo "Bohdana";;
 "01-19" ) echo "Drahomíra, Mário";;
 "01-20" ) echo "Dalibor";;
 "01-21" ) echo "Vincent";;
 "01-22" ) echo "Zora";;
 "01-23" ) echo "Miloš";;
 "01-24" ) echo "Timotej";;
 "01-25" ) echo "Gejza";;
 "01-26" ) echo "Tamara";;
 "01-27" ) echo "Bohuš";;
 "01-28" ) echo "Alfonz";;
 "01-29" ) echo "Gašpar";;
 "01-30" ) echo "Ema";;
 "01-31" ) echo "Emil";;
 "02-01" ) echo "Tatiana";;
 "02-02" ) echo "Erika, Erik";;
 "02-03" ) echo "Blažej";;
 "02-04" ) echo "Veronika";;
 "02-05" ) echo "Agáta";;
 "02-06" ) echo "Dorota";;
 "02-07" ) echo "Vanda";;
 "02-08" ) echo "Zoja";;
 "02-09" ) echo "Zdenko";;
 "02-10" ) echo "Gabriela";;
 "02-11" ) echo "Dezider";;
 "02-12" ) echo "Perla";;
 "02-13" ) echo "Arpád";;
 "02-14" ) echo "Valentín";;
 "02-15" ) echo "Pravoslav";;
 "02-16" ) echo "Ida, Liana";;
 "02-17" ) echo "Miloslava";;
 "02-18" ) echo "Jaromír";;
 "02-19" ) echo "Vlasta";;
 "02-20" ) echo "Lívia";;
 "02-21" ) echo "Eleonóra";;
 "02-22" ) echo "Etela";;
 "02-23" ) echo "Roman, Romana";;
 "02-24" ) echo "Matej";;
 "02-25" ) echo "Frederik, Frederika";;
 "02-26" ) echo "Viktor";;
 "02-27" ) echo "Alexander";;
 "02-28" ) echo "Zlatica";;
 "03-01" ) echo "Albín";;
 "03-02" ) echo "Anežka";;
 "03-03" ) echo "Bohumil, Bohumila";;
 "03-04" ) echo "Kazimír";;
 "03-05" ) echo "Fridrich";;
 "03-06" ) echo "Radoslav, Radoslava";;
 "03-07" ) echo "Tomáš";;
 "03-08" ) echo "Alan, Alana";;
 "03-09" ) echo "Františka";;
 "03-10" ) echo "Bruno, Branislav";;
 "03-11" ) echo "Angela, Angelika";;
 "03-12" ) echo "Gregor";;
 "03-13" ) echo "Vlastimil";;
 "03-14" ) echo "Matilda";;
 "03-15" ) echo "Svetlana";;
 "03-16" ) echo "Boleslav";;
 "03-17" ) echo "Ľubica";;
 "03-18" ) echo "Eduard";;
 "03-19" ) echo "Jozef";;
 "03-20" ) echo "Víťazoslav, Klaudius";;
 "03-21" ) echo "Blahoslav";;
 "03-22" ) echo "Beňadik";;
 "03-23" ) echo "Adrián";;
 "03-24" ) echo "Gabriel";;
 "03-25" ) echo "Marián";;
 "03-26" ) echo "Emanuel";;
 "03-27" ) echo "Alena";;
 "03-28" ) echo "Soňa";;
 "03-29" ) echo "Miroslav";;
 "03-30" ) echo "Vieroslava";;
 "03-31" ) echo "Benjamín";;
 "04-01" ) echo "Hugo";;
 "04-02" ) echo "Zita";;
 "04-03" ) echo "Richard";;
 "04-04" ) echo "Izidor";;
 "04-05" ) echo "Miroslava";;
 "04-06" ) echo "Irena";;
 "04-07" ) echo "Zoltán";;
 "04-08" ) echo "Albert";;
 "04-09" ) echo "Milena";;
 "04-10" ) echo "Igor";;
 "04-11" ) echo "Július";;
 "04-12" ) echo "Estera";;
 "04-13" ) echo "Aleš";;
 "04-14" ) echo "Justina";;
 "04-15" ) echo "Fedor";;
 "04-16" ) echo "Dana, Danica";;
 "04-17" ) echo "Rudolf";;
 "04-18" ) echo "Valér";;
 "04-19" ) echo "Jela";;
 "04-20" ) echo "Marcel";;
 "04-21" ) echo "Ervín";;
 "04-22" ) echo "Slavomír";;
 "04-23" ) echo "Vojtech";;
 "04-24" ) echo "Juraj";;
 "04-25" ) echo "Marek";;
 "04-26" ) echo "Jaroslava";;
 "04-27" ) echo "Jaroslav";;
 "04-28" ) echo "Jarmila";;
 "04-29" ) echo "Lea, Leo";;
 "04-30" ) echo "Anastázia";;
 "05-02" ) echo "Žigmund";;
 "05-03" ) echo "Galina";;
 "05-04" ) echo "Florián";;
 "05-05" ) echo "Lesia, Lesana";;
 "05-06" ) echo "Hermína";;
 "05-07" ) echo "Monika";;
 "05-08" ) echo "Ingrida";;
 "05-09" ) echo "Roland";;
 "05-10" ) echo "Viktória";;
 "05-11" ) echo "Blažena";;
 "05-12" ) echo "Pankrác";;
 "05-13" ) echo "Servác";;
 "05-14" ) echo "Bonifác";;
 "05-15" ) echo "Žofia, Sofia";;
 "05-16" ) echo "Svetozár";;
 "05-17" ) echo "Gizela";;
 "05-18" ) echo "Viola";;
 "05-19" ) echo "Gertrúda";;
 "05-20" ) echo "Bernard";;
 "05-21" ) echo "Zina";;
 "05-22" ) echo "Júlia, Juliana";;
 "05-23" ) echo "Želmíra";;
 "05-24" ) echo "Ela";;
 "05-25" ) echo "Urban";;
 "05-26" ) echo "Dušan";;
 "05-27" ) echo "Iveta";;
 "05-28" ) echo "Viliam";;
 "05-29" ) echo "Vilma";;
 "05-30" ) echo "Ferdinand";;
 "05-31" ) echo "Petrana, Petronela";;
 "06-01" ) echo "Žaneta";;
 "06-02" ) echo "Xénia, Oxana";;
 "06-03" ) echo "Karolína";;
 "06-04" ) echo "Lenka";;
 "06-05" ) echo "Laura";;
 "06-06" ) echo "Norbert";;
 "06-07" ) echo "Róbert";;
 "06-08" ) echo "Medard";;
 "06-09" ) echo "Stanislava";;
 "06-10" ) echo "Margaréta";;
 "06-11" ) echo "Dobroslava";;
 "06-12" ) echo "Zlatko";;
 "06-13" ) echo "Anton";;
 "06-14" ) echo "Vasil";;
 "06-15" ) echo "Vít";;
 "06-16" ) echo "Blanka, Bianka";;
 "06-17" ) echo "Adolf";;
 "06-18" ) echo "Vratislav";;
 "06-19" ) echo "Alfréd";;
 "06-20" ) echo "Valéria";;
 "06-21" ) echo "Alojz";;
 "06-22" ) echo "Paulína";;
 "06-23" ) echo "Sidónia";;
 "06-24" ) echo "Ján";;
 "06-25" ) echo "Olívia, Tadeáš";;
 "06-26" ) echo "Adriána";;
 "06-27" ) echo "Ladislav, Ladislava";;
 "06-28" ) echo "Beáta";;
 "06-29" ) echo "Peter, Pavol";;
 "06-30" ) echo "Melánia";;
 "07-01" ) echo "Diana";;
 "07-02" ) echo "Berta";;
 "07-03" ) echo "Miloslav";;
 "07-04" ) echo "Prokop";;
 "07-05" ) echo "Cyril, Metod";;
 "07-06" ) echo "Patrik, Patrícia";;
 "07-07" ) echo "Oliver";;
 "07-08" ) echo "Ivan";;
 "07-09" ) echo "Lujza";;
 "07-10" ) echo "Amália";;
 "07-11" ) echo "Milota";;
 "07-12" ) echo "Nina";;
 "07-13" ) echo "Margita";;
 "07-14" ) echo "Kamil";;
 "07-15" ) echo "Henrich";;
 "07-16" ) echo "Drahomír";;
 "07-17" ) echo "Bohuslav";;
 "07-18" ) echo "Kamila";;
 "07-19" ) echo "Dušana";;
 "07-20" ) echo "Iľja, Eliáš";;
 "07-21" ) echo "Daniel";;
 "07-22" ) echo "Magdaléna";;
 "07-23" ) echo "Oľga";;
 "07-24" ) echo "Vladimír";;
 "07-25" ) echo "Jakub";;
 "07-26" ) echo "Anna, Hana";;
 "07-27" ) echo "Božena";;
 "07-28" ) echo "Krištof";;
 "07-29" ) echo "Marta";;
 "07-30" ) echo "Libuša";;
 "07-31" ) echo "Ignác";;
 "08-01" ) echo "Božidara";;
 "08-02" ) echo "Gustáv";;
 "08-03" ) echo "Jerguš";;
 "08-04" ) echo "Dominika, Dominik";;
 "08-05" ) echo "Hortenzia";;
 "08-06" ) echo "Jozefína";;
 "08-07" ) echo "Štefánia";;
 "08-08" ) echo "Oskar";;
 "08-09" ) echo "Ľubomíra";;
 "08-10" ) echo "Vavrinec";;
 "08-11" ) echo "Zuzana";;
 "08-12" ) echo "Darina";;
 "08-13" ) echo "Ľubomír";;
 "08-14" ) echo "Mojmír";;
 "08-15" ) echo "Marcela";;
 "08-16" ) echo "Leonard";;
 "08-17" ) echo "Milica";;
 "08-18" ) echo "Elena, Helena";;
 "08-19" ) echo "Lýdia";;
 "08-20" ) echo "Anabela";;
 "08-21" ) echo "Jana";;
 "08-22" ) echo "Tichomír";;
 "08-23" ) echo "Filip";;
 "08-24" ) echo "Bartolomej";;
 "08-25" ) echo "Ľudovít";;
 "08-26" ) echo "Samuel";;
 "08-27" ) echo "Silvia";;
 "08-28" ) echo "Augustín";;
 "08-29" ) echo "Nikola, Nikolaj";;
 "08-30" ) echo "Ružena";;
 "08-31" ) echo "Nora";;
 "09-01" ) echo "Drahoslava";;
 "09-02" ) echo "Linda, Rebeka";;
 "09-03" ) echo "Belo";;
 "09-04" ) echo "Rozália";;
 "09-05" ) echo "Regina";;
 "09-06" ) echo "Alica";;
 "09-07" ) echo "Marianna";;
 "09-08" ) echo "Miriama";;
 "09-09" ) echo "Martina";;
 "09-10" ) echo "Oleg";;
 "09-11" ) echo "Bystrík";;
 "09-12" ) echo "Mária";;
 "09-13" ) echo "Ctibor";;
 "09-14" ) echo "Ľudomil";;
 "09-15" ) echo "Jolana";;
 "09-16" ) echo "Ľudmila";;
 "09-17" ) echo "Olympia";;
 "09-18" ) echo "Eugénia";;
 "09-19" ) echo "Konštantín";;
 "09-20" ) echo "Ľuboslav, Ľuboslava";;
 "09-21" ) echo "Matúš";;
 "09-22" ) echo "Móric";;
 "09-23" ) echo "Zdenka";;
 "09-24" ) echo "Ľuboš, Ľubor";;
 "09-25" ) echo "Vladislav";;
 "09-26" ) echo "Edita";;
 "09-27" ) echo "Cyprián";;
 "09-28" ) echo "Václav";;
 "09-29" ) echo "Michal, Michaela";;
 "09-30" ) echo "Jarolím";;
 "10-01" ) echo "Arnold";;
 "10-02" ) echo "Levoslav";;
 "10-03" ) echo "Stela";;
 "10-04" ) echo "František";;
 "10-05" ) echo "Viera";;
 "10-06" ) echo "Natália";;
 "10-07" ) echo "Eliška";;
 "10-08" ) echo "Brigita";;
 "10-09" ) echo "Dionýz";;
 "10-10" ) echo "Slavomíra";;
 "10-11" ) echo "Valentína";;
 "10-12" ) echo "Maximilián";;
 "10-13" ) echo "Koloman";;
 "10-14" ) echo "Boris";;
 "10-15" ) echo "Terézia";;
 "10-16" ) echo "Vladimíra";;
 "10-17" ) echo "Hedviga";;
 "10-18" ) echo "Lukáš";;
 "10-19" ) echo "Kristián";;
 "10-20" ) echo "Vendelín";;
 "10-21" ) echo "Uršuľa";;
 "10-22" ) echo "Sergej";;
 "10-23" ) echo "Alojzia";;
 "10-24" ) echo "Kvetoslava";;
 "10-25" ) echo "Aurel";;
 "10-26" ) echo "Demeter";;
 "10-27" ) echo "Sabína";;
 "10-28" ) echo "Dobromila";;
 "10-29" ) echo "Klára";;
 "10-30" ) echo "Šimon, Simona";;
 "10-31" ) echo "Aurélia";;
 "11-01" ) echo "Denis, Denisa";;
 "11-03" ) echo "Hubert";;
 "11-04" ) echo "Karol";;
 "11-05" ) echo "Imrich";;
 "11-06" ) echo "Renáta";;
 "11-07" ) echo "René";;
 "11-08" ) echo "Bohumír";;
 "11-09" ) echo "Teodor";;
 "11-10" ) echo "Tibor";;
 "11-11" ) echo "Martin, Maroš";;
 "11-12" ) echo "Svätopluk";;
 "11-13" ) echo "Stanislav";;
 "11-14" ) echo "Irma";;
 "11-15" ) echo "Leopold";;
 "11-16" ) echo "Agnesa";;
 "11-17" ) echo "Klaudia";;
 "11-18" ) echo "Eugen";;
 "11-19" ) echo "Alžbeta";;
 "11-20" ) echo "Félix";;
 "11-21" ) echo "Elvíra";;
 "11-22" ) echo "Cecília";;
 "11-23" ) echo "Klement";;
 "11-24" ) echo "Emília";;
 "11-25" ) echo "Katarína";;
 "11-26" ) echo "Kornel";;
 "11-27" ) echo "Milan";;
 "11-28" ) echo "Henrieta";;
 "11-29" ) echo "Vratko";;
 "11-30" ) echo "Ondrej, Andrej";;
 "12-01" ) echo "Edmund";;
 "12-02" ) echo "Bibiána";;
 "12-03" ) echo "Oldrich";;
 "12-04" ) echo "Barbora, Barbara";;
 "12-05" ) echo "Oto";;
 "12-06" ) echo "Mikuláš";;
 "12-07" ) echo "Ambróz";;
 "12-08" ) echo "Marína";;
 "12-09" ) echo "Izabela";;
 "12-10" ) echo "Radúz";;
 "12-11" ) echo "Hilda";;
 "12-12" ) echo "Otília";;
 "12-13" ) echo "Lucia";;
 "12-14" ) echo "Branislava, Bronislava";;
 "12-15" ) echo "Ivica";;
 "12-16" ) echo "Albína";;
 "12-17" ) echo "Kornélia";;
 "12-18" ) echo "Sláva";;
 "12-19" ) echo "Judita";;
 "12-20" ) echo "Dagmara";;
 "12-21" ) echo "Bohdan";;
 "12-22" ) echo "Adela";;
 "12-23" ) echo "Nadežda";;
 "12-24" ) echo "Adam, Eva";;
 "12-26" ) echo "Štefan";;
 "12-27" ) echo "Filoména";;
 "12-28" ) echo "Ivana, Ivona";;
 "12-29" ) echo "Milada";;
 "12-30" ) echo "Dávid";;
 "12-31" ) echo "Silvester";;
 * ) echo "Nikto nemá meniny";;
 esac
 }
 
 actual=$(date "+%a %d %b %Y")
 date=`date +%m-%d`
 printf "$actual > " # print actual date
 name; # print todays name
 printf "Tmrw " # print tomorrows name
 date=`date -d 'next day' +%m-%d`
 name;
 exit 0

Here is the same script written in perl language:

#!/usr/bin/perl 

#pragma; this specifies that all variables have to be declared
use strict;
  
sub name{ # function called from the bottom of the script  
 switch: {
  $_[0] == "01.02" && do { printf "Alexandra, Karina\n"; last switch; };
  $_[0] == "01.03" && do { printf "Daniela\n"; last switch; };
  $_[0] == "01.04" && do { printf "Drahoslav\n"; last switch; };
  $_[0] == "01.05" && do { printf "Andrea\n"; last switch; };
  $_[0] == "01.06" && do { printf "Antónia\n"; last switch; };
  $_[0] == "01.07" && do { printf "Bohuslava\n"; last switch; };
  $_[0] == "01.08" && do { printf "Severín\n"; last switch; };
  $_[0] == "01.09" && do { printf "Alexej\n"; last switch; };
  $_[0] == "01.10" && do { printf "Dáša\n"; last switch; };
  $_[0] == "01.11" && do { printf "Malvína\n"; last switch; };
  $_[0] == "01.12" && do { printf "Ernest\n"; last switch; };
  $_[0] == "01.13" && do { printf "Rastislav\n"; last switch; };
  $_[0] == "01.14" && do { printf "Radovan\n"; last switch; };
  $_[0] == "01.15" && do { printf "Dobroslav\n"; last switch; };
  $_[0] == "01.16" && do { printf "Kristína\n"; last switch; };
  $_[0] == "01.17" && do { printf "Nataša\n"; last switch; };
  $_[0] == "01.18" && do { printf "Bohdana\n"; last switch; };
  $_[0] == "01.19" && do { printf "Drahomíra, Mário\n"; last switch; };
  $_[0] == "01.20" && do { printf "Dalibor\n"; last switch; };
  $_[0] == "01.21" && do { printf "Vincent\n"; last switch; };
  $_[0] == "01.22" && do { printf "Zora\n"; last switch; };
  $_[0] == "01.23" && do { printf "Miloš\n"; last switch; };
  $_[0] == "01.24" && do { printf "Timotej\n"; last switch; };
  $_[0] == "01.25" && do { printf "Gejza\n"; last switch; };
  $_[0] == "01.26" && do { printf "Tamara\n"; last switch; };
  $_[0] == "01.27" && do { printf "Bohuš\n"; last switch; };
  $_[0] == "01.28" && do { printf "Alfonz\n"; last switch; };
  $_[0] == "01.29" && do { printf "Gašpar\n"; last switch; };
  $_[0] == "01.30" && do { printf "Ema\n"; last switch; };
  $_[0] == "01.31" && do { printf "Emil\n"; last switch; };
  $_[0] == "02.01" && do { printf "Tatiana\n"; last switch; };
  $_[0] == "02.02" && do { printf "Erika, Erik\n"; last switch; };
  $_[0] == "02.03" && do { printf "Blažej\n"; last switch; };
  $_[0] == "02.04" && do { printf "Veronika\n"; last switch; };
  $_[0] == "02.05" && do { printf "Agáta\n"; last switch; };
  $_[0] == "02.06" && do { printf "Dorota\n"; last switch; };
  $_[0] == "02.07" && do { printf "Vanda\n"; last switch; };
  $_[0] == "02.08" && do { printf "Zoja\n"; last switch; };
  $_[0] == "02.09" && do { printf "Zdenko\n"; last switch; };
  $_[0] == "02.10" && do { printf "Gabriela\n"; last switch; };
  $_[0] == "02.11" && do { printf "Dezider\n"; last switch; };
  $_[0] == "02.12" && do { printf "Perla\n"; last switch; };
  $_[0] == "02.13" && do { printf "Arpád\n"; last switch; };
  $_[0] == "02.14" && do { printf "Valentín\n"; last switch; };
  $_[0] == "02.15" && do { printf "Pravoslav\n"; last switch; };
  $_[0] == "02.16" && do { printf "Ida, Liana\n"; last switch; };
  $_[0] == "02.17" && do { printf "Miloslava\n"; last switch; };
  $_[0] == "02.18" && do { printf "Jaromír\n"; last switch; };
  $_[0] == "02.19" && do { printf "Vlasta\n"; last switch; };
  $_[0] == "02.20" && do { printf "Lívia\n"; last switch; };
  $_[0] == "02.21" && do { printf "Eleonóra\n"; last switch; };
  $_[0] == "02.22" && do { printf "Etela\n"; last switch; };
  $_[0] == "02.23" && do { printf "Roman, Romana\n"; last switch; };
  $_[0] == "02.24" && do { printf "Matej\n"; last switch; };
  $_[0] == "02.25" && do { printf "Frederik, Frederika\n"; last switch; };
  $_[0] == "02.26" && do { printf "Viktor\n"; last switch; };
  $_[0] == "02.27" && do { printf "Alexander\n"; last switch; };
  $_[0] == "02.28" && do { printf "Zlatica\n"; last switch; };
  $_[0] == "03.01" && do { printf "Albín\n"; last switch; };
  $_[0] == "03.02" && do { printf "Anežka\n"; last switch; };
  $_[0] == "03.03" && do { printf "Bohumil, Bohumila\n"; last switch; };
  $_[0] == "03.04" && do { printf "Kazimír\n"; last switch; };
  $_[0] == "03.05" && do { printf "Fridrich\n"; last switch; };
  $_[0] == "03.06" && do { printf "Radoslav, Radoslava\n"; last switch; };
  $_[0] == "03.07" && do { printf "Tomáš\n"; last switch; };
  $_[0] == "03.08" && do { printf "Alan, Alana\n"; last switch; };
  $_[0] == "03.09" && do { printf "Františka\n"; last switch; };
  $_[0] == "03.10" && do { printf "Bruno, Branislav\n"; last switch; };
  $_[0] == "03.11" && do { printf "Angela, Angelika\n"; last switch; };
  $_[0] == "03.12" && do { printf "Gregor\n"; last switch; };
  $_[0] == "03.13" && do { printf "Vlastimil\n"; last switch; };
  $_[0] == "03.14" && do { printf "Matilda\n"; last switch; };
  $_[0] == "03.15" && do { printf "Svetlana\n"; last switch; };
  $_[0] == "03.16" && do { printf "Boleslav\n"; last switch; };
  $_[0] == "03.17" && do { printf "Ľubica\n"; last switch; };
  $_[0] == "03.18" && do { printf "Eduard\n"; last switch; };
  $_[0] == "03.19" && do { printf "Jozef\n"; last switch; };
  $_[0] == "03.20" && do { printf "Víťazoslav, Klaudius\n"; last switch; };
  $_[0] == "03.21" && do { printf "Blahoslav\n"; last switch; };
  $_[0] == "03.22" && do { printf "Beňadik\n"; last switch; };
  $_[0] == "03.23" && do { printf "Adrián\n"; last switch; };
  $_[0] == "03.24" && do { printf "Gabriel\n"; last switch; };
  $_[0] == "03.25" && do { printf "Marián\n"; last switch; };
  $_[0] == "03.26" && do { printf "Emanuel\n"; last switch; };
  $_[0] == "03.27" && do { printf "Alena\n"; last switch; };
  $_[0] == "03.28" && do { printf "Soňa\n"; last switch; };
  $_[0] == "03.29" && do { printf "Miroslav\n"; last switch; };
  $_[0] == "03.30" && do { printf "Vieroslava\n"; last switch; };
  $_[0] == "03.31" && do { printf "Benjamín\n"; last switch; };
  $_[0] == "04.01" && do { printf "Hugo\n"; last switch; };
  $_[0] == "04.02" && do { printf "Zita\n"; last switch; };
  $_[0] == "04.03" && do { printf "Richard\n"; last switch; };
  $_[0] == "04.04" && do { printf "Izidor\n"; last switch; };
  $_[0] == "04.05" && do { printf "Miroslava\n"; last switch; };
  $_[0] == "04.06" && do { printf "Irena\n"; last switch; };
  $_[0] == "04.07" && do { printf "Zoltán\n"; last switch; };
  $_[0] == "04.08" && do { printf "Albert\n"; last switch; };
  $_[0] == "04.09" && do { printf "Milena\n"; last switch; };
  $_[0] == "04.10" && do { printf "Igor\n"; last switch; };
  $_[0] == "04.11" && do { printf "Július\n"; last switch; };
  $_[0] == "04.12" && do { printf "Estera\n"; last switch; };
  $_[0] == "04.13" && do { printf "Aleš\n"; last switch; };
  $_[0] == "04.14" && do { printf "Justina\n"; last switch; };
  $_[0] == "04.15" && do { printf "Fedor\n"; last switch; };
  $_[0] == "04.16" && do { printf "Dana, Danica\n"; last switch; };
  $_[0] == "04.17" && do { printf "Rudolf\n"; last switch; };
  $_[0] == "04.18" && do { printf "Valér\n"; last switch; };
  $_[0] == "04.19" && do { printf "Jela\n"; last switch; };
  $_[0] == "04.20" && do { printf "Marcel\n"; last switch; };
  $_[0] == "04.21" && do { printf "Ervín\n"; last switch; };
  $_[0] == "04.22" && do { printf "Slavomír\n"; last switch; };
  $_[0] == "04.23" && do { printf "Vojtech\n"; last switch; };
  $_[0] == "04.24" && do { printf "Juraj\n"; last switch; };
  $_[0] == "04.25" && do { printf "Marek\n"; last switch; };
  $_[0] == "04.26" && do { printf "Jaroslava\n"; last switch; };
  $_[0] == "04.27" && do { printf "Jaroslav\n"; last switch; };
  $_[0] == "04.28" && do { printf "Jarmila\n"; last switch; };
  $_[0] == "04.29" && do { printf "Lea, Leo\n"; last switch; };
  $_[0] == "04.30" && do { printf "Anastázia\n"; last switch; };
  $_[0] == "05.02" && do { printf "Žigmund\n"; last switch; };
  $_[0] == "05.03" && do { printf "Galina\n"; last switch; };
  $_[0] == "05.04" && do { printf "Florián\n"; last switch; };
  $_[0] == "05.05" && do { printf "Lesia, Lesana\n"; last switch; };
  $_[0] == "05.06" && do { printf "Hermína\n"; last switch; };
  $_[0] == "05.07" && do { printf "Monika\n"; last switch; };
  $_[0] == "05.08" && do { printf "Ingrida\n"; last switch; };
  $_[0] == "05.09" && do { printf "Roland\n"; last switch; };
  $_[0] == "05.10" && do { printf "Viktória\n"; last switch; };
  $_[0] == "05.11" && do { printf "Blažena\n"; last switch; };
  $_[0] == "05.12" && do { printf "Pankrác\n"; last switch; };
  $_[0] == "05.13" && do { printf "Servác\n"; last switch; };
  $_[0] == "05.14" && do { printf "Bonifác\n"; last switch; };
  $_[0] == "05.15" && do { printf "Žofia, Sofia\n"; last switch; };
  $_[0] == "05.16" && do { printf "Svetozár\n"; last switch; };
  $_[0] == "05.17" && do { printf "Gizela\n"; last switch; };
  $_[0] == "05.18" && do { printf "Viola\n"; last switch; };
  $_[0] == "05.19" && do { printf "Gertrúda\n"; last switch; };
  $_[0] == "05.20" && do { printf "Bernard\n"; last switch; };
  $_[0] == "05.21" && do { printf "Zina\n"; last switch; };
  $_[0] == "05.22" && do { printf "Júlia, Juliana\n"; last switch; };
  $_[0] == "05.23" && do { printf "Želmíra\n"; last switch; };
  $_[0] == "05.24" && do { printf "Ela\n"; last switch; };
  $_[0] == "05.25" && do { printf "Urban\n"; last switch; };
  $_[0] == "05.26" && do { printf "Dušan\n"; last switch; };
  $_[0] == "05.27" && do { printf "Iveta\n"; last switch; };
  $_[0] == "05.28" && do { printf "Viliam\n"; last switch; };
  $_[0] == "05.29" && do { printf "Vilma\n"; last switch; };
  $_[0] == "05.30" && do { printf "Ferdinand\n"; last switch; };
  $_[0] == "05.31" && do { printf "Petrana, Petronela\n"; last switch; };
  $_[0] == "06.01" && do { printf "Žaneta\n"; last switch; };
  $_[0] == "06.02" && do { printf "Xénia, Oxana\n"; last switch; };
  $_[0] == "06.03" && do { printf "Karolína\n"; last switch; };
  $_[0] == "06.04" && do { printf "Lenka\n"; last switch; };
  $_[0] == "06.05" && do { printf "Laura\n"; last switch; };
  $_[0] == "06.06" && do { printf "Norbert\n"; last switch; };
  $_[0] == "06.07" && do { printf "Róbert\n"; last switch; };
  $_[0] == "06.08" && do { printf "Medard\n"; last switch; };
  $_[0] == "06.09" && do { printf "Stanislava\n"; last switch; };
  $_[0] == "06.10" && do { printf "Margaréta\n"; last switch; };
  $_[0] == "06.11" && do { printf "Dobroslava\n"; last switch; };
  $_[0] == "06.12" && do { printf "Zlatko\n"; last switch; };
  $_[0] == "06.13" && do { printf "Anton\n"; last switch; };
  $_[0] == "06.14" && do { printf "Vasil\n"; last switch; };
  $_[0] == "06.15" && do { printf "Vít\n"; last switch; };
  $_[0] == "06.16" && do { printf "Blanka, Bianka\n"; last switch; };
  $_[0] == "06.17" && do { printf "Adolf\n"; last switch; };
  $_[0] == "06.18" && do { printf "Vratislav\n"; last switch; };
  $_[0] == "06.19" && do { printf "Alfréd\n"; last switch; };
  $_[0] == "06.20" && do { printf "Valéria\n"; last switch; };
  $_[0] == "06.21" && do { printf "Alojz\n"; last switch; };
  $_[0] == "06.22" && do { printf "Paulína\n"; last switch; };
  $_[0] == "06.23" && do { printf "Sidónia\n"; last switch; };
  $_[0] == "06.24" && do { printf "Ján\n"; last switch; };
  $_[0] == "06.25" && do { printf "Olívia, Tadeáš\n"; last switch; };
  $_[0] == "06.26" && do { printf "Adriána\n"; last switch; };
  $_[0] == "06.27" && do { printf "Ladislav, Ladislava\n"; last switch; };
  $_[0] == "06.28" && do { printf "Beáta\n"; last switch; };
  $_[0] == "06.29" && do { printf "Peter, Pavol\n"; last switch; };
  $_[0] == "06.30" && do { printf "Melánia\n"; last switch; };
  $_[0] == "07.01" && do { printf "Diana\n"; last switch; };
  $_[0] == "07.02" && do { printf "Berta\n"; last switch; };
  $_[0] == "07.03" && do { printf "Miloslav\n"; last switch; };
  $_[0] == "07.04" && do { printf "Prokop\n"; last switch; };
  $_[0] == "07.05" && do { printf "Cyril, Metod\n"; last switch; };
  $_[0] == "07.06" && do { printf "Patrik, Patrícia\n"; last switch; };
  $_[0] == "07.07" && do { printf "Oliver\n"; last switch; };
  $_[0] == "07.08" && do { printf "Ivan\n"; last switch; };
  $_[0] == "07.09" && do { printf "Lujza\n"; last switch; };
  $_[0] == "07.10" && do { printf "Amália\n"; last switch; };
  $_[0] == "07.11" && do { printf "Milota\n"; last switch; };
  $_[0] == "07.12" && do { printf "Nina\n"; last switch; };
  $_[0] == "07.13" && do { printf "Margita\n"; last switch; };
  $_[0] == "07.14" && do { printf "Kamil\n"; last switch; };
  $_[0] == "07.15" && do { printf "Henrich\n"; last switch; };
  $_[0] == "07.16" && do { printf "Drahomír\n"; last switch; };
  $_[0] == "07.17" && do { printf "Bohuslav\n"; last switch; };
  $_[0] == "07.18" && do { printf "Kamila\n"; last switch; };
  $_[0] == "07.19" && do { printf "Dušana\n"; last switch; };
  $_[0] == "07.20" && do { printf "Iľja, Eliáš\n"; last switch; };
  $_[0] == "07.21" && do { printf "Daniel\n"; last switch; };
  $_[0] == "07.22" && do { printf "Magdaléna\n"; last switch; };
  $_[0] == "07.23" && do { printf "Oľga\n"; last switch; };
  $_[0] == "07.24" && do { printf "Vladimír\n"; last switch; };
  $_[0] == "07.25" && do { printf "Jakub\n"; last switch; };
  $_[0] == "07.26" && do { printf "Anna, Hana\n"; last switch; };
  $_[0] == "07.27" && do { printf "Božena\n"; last switch; };
  $_[0] == "07.28" && do { printf "Krištof\n"; last switch; };
  $_[0] == "07.29" && do { printf "Marta\n"; last switch; };
  $_[0] == "07.30" && do { printf "Libuša\n"; last switch; };
  $_[0] == "07.31" && do { printf "Ignác\n"; last switch; };
  $_[0] == "08.01" && do { printf "Božidara\n"; last switch; };
  $_[0] == "08.02" && do { printf "Gustáv\n"; last switch; };
  $_[0] == "08.03" && do { printf "Jerguš\n"; last switch; };
  $_[0] == "08.04" && do { printf "Dominika, Dominik\n"; last switch; };
  $_[0] == "08.05" && do { printf "Hortenzia\n"; last switch; };
  $_[0] == "08.06" && do { printf "Jozefína\n"; last switch; };
  $_[0] == "08.07" && do { printf "Štefánia\n"; last switch; };
  $_[0] == "08.08" && do { printf "Oskar\n"; last switch; };
  $_[0] == "08.09" && do { printf "Ľubomíra\n"; last switch; };
  $_[0] == "08.10" && do { printf "Vavrinec\n"; last switch; };
  $_[0] == "08.11" && do { printf "Zuzana\n"; last switch; };
  $_[0] == "08.12" && do { printf "Darina\n"; last switch; };
  $_[0] == "08.13" && do { printf "Ľubomír\n"; last switch; };
  $_[0] == "08.14" && do { printf "Mojmír\n"; last switch; };
  $_[0] == "08.15" && do { printf "Marcela\n"; last switch; };
  $_[0] == "08.16" && do { printf "Leonard\n"; last switch; };
  $_[0] == "08.17" && do { printf "Milica\n"; last switch; };
  $_[0] == "08.18" && do { printf "Elena, Helena\n"; last switch; };
  $_[0] == "08.19" && do { printf "Lýdia\n"; last switch; };
  $_[0] == "08.20" && do { printf "Anabela\n"; last switch; };
  $_[0] == "08.21" && do { printf "Jana\n"; last switch; };
  $_[0] == "08.22" && do { printf "Tichomír\n"; last switch; };
  $_[0] == "08.23" && do { printf "Filip\n"; last switch; };
  $_[0] == "08.24" && do { printf "Bartolomej\n"; last switch; };
  $_[0] == "08.25" && do { printf "Ľudovít\n"; last switch; };
  $_[0] == "08.26" && do { printf "Samuel\n"; last switch; };
  $_[0] == "08.27" && do { printf "Silvia\n"; last switch; };
  $_[0] == "08.28" && do { printf "Augustín\n"; last switch; };
  $_[0] == "08.29" && do { printf "Nikola, Nikolaj\n"; last switch; };
  $_[0] == "08.30" && do { printf "Ružena\n"; last switch; };
  $_[0] == "08.31" && do { printf "Nora\n"; last switch; };
  $_[0] == "09.01" && do { printf "Drahoslava\n"; last switch; };
  $_[0] == "09.02" && do { printf "Linda, Rebeka\n"; last switch; };
  $_[0] == "09.03" && do { printf "Belo\n"; last switch; };
  $_[0] == "09.04" && do { printf "Rozália\n"; last switch; };
  $_[0] == "09.05" && do { printf "Regina\n"; last switch; };
  $_[0] == "09.06" && do { printf "Alica\n"; last switch; };
  $_[0] == "09.07" && do { printf "Marianna\n"; last switch; };
  $_[0] == "09.08" && do { printf "Miriama\n"; last switch; };
  $_[0] == "09.09" && do { printf "Martina\n"; last switch; };
  $_[0] == "09.10" && do { printf "Oleg\n"; last switch; };
  $_[0] == "09.11" && do { printf "Bystrík\n"; last switch; };
  $_[0] == "09.12" && do { printf "Mária\n"; last switch; };
  $_[0] == "09.13" && do { printf "Ctibor\n"; last switch; };
  $_[0] == "09.14" && do { printf "Ľudomil\n"; last switch; };
  $_[0] == "09.15" && do { printf "Jolana\n"; last switch; };
  $_[0] == "09.16" && do { printf "Ľudmila\n"; last switch; };
  $_[0] == "09.17" && do { printf "Olympia\n"; last switch; };
  $_[0] == "09.18" && do { printf "Eugénia\n"; last switch; };
  $_[0] == "09.19" && do { printf "Konštantín\n"; last switch; };
  $_[0] == "09.20" && do { printf "Ľuboslav, Ľuboslava\n"; last switch; };
  $_[0] == "09.21" && do { printf "Matúš\n"; last switch; };
  $_[0] == "09.22" && do { printf "Móric\n"; last switch; };
  $_[0] == "09.23" && do { printf "Zdenka\n"; last switch; };
  $_[0] == "09.24" && do { printf "Ľuboš, Ľubor\n"; last switch; };
  $_[0] == "09.25" && do { printf "Vladislav\n"; last switch; };
  $_[0] == "09.26" && do { printf "Edita\n"; last switch; };
  $_[0] == "09.27" && do { printf "Cyprián\n"; last switch; };
  $_[0] == "09.28" && do { printf "Václav\n"; last switch; };
  $_[0] == "09.29" && do { printf "Michal, Michaela\n"; last switch; };
  $_[0] == "09.30" && do { printf "Jarolím\n"; last switch; };
  $_[0] == "10.01" && do { printf "Arnold\n"; last switch; };
  $_[0] == "10.02" && do { printf "Levoslav\n"; last switch; };
  $_[0] == "10.03" && do { printf "Stela\n"; last switch; };
  $_[0] == "10.04" && do { printf "František\n"; last switch; };
  $_[0] == "10.05" && do { printf "Viera\n"; last switch; };
  $_[0] == "10.06" && do { printf "Natália\n"; last switch; };
  $_[0] == "10.07" && do { printf "Eliška\n"; last switch; };
  $_[0] == "10.08" && do { printf "Brigita\n"; last switch; };
  $_[0] == "10.09" && do { printf "Dionýz\n"; last switch; };
  $_[0] == "10.10" && do { printf "Slavomíra\n"; last switch; };
  $_[0] == "10.11" && do { printf "Valentína\n"; last switch; };
  $_[0] == "10.12" && do { printf "Maximilián\n"; last switch; };
  $_[0] == "10.13" && do { printf "Koloman\n"; last switch; };
  $_[0] == "10.14" && do { printf "Boris\n"; last switch; };
  $_[0] == "10.15" && do { printf "Terézia\n"; last switch; };
  $_[0] == "10.16" && do { printf "Vladimíra\n"; last switch; };
  $_[0] == "10.17" && do { printf "Hedviga\n"; last switch; };
  $_[0] == "10.18" && do { printf "Lukáš\n"; last switch; };
  $_[0] == "10.19" && do { printf "Kristián\n"; last switch; };
  $_[0] == "10.20" && do { printf "Vendelín\n"; last switch; };
  $_[0] == "10.21" && do { printf "Uršuľa\n"; last switch; };
  $_[0] == "10.22" && do { printf "Sergej\n"; last switch; };
  $_[0] == "10.23" && do { printf "Alojzia\n"; last switch; };
  $_[0] == "10.24" && do { printf "Kvetoslava\n"; last switch; };
  $_[0] == "10.25" && do { printf "Aurel\n"; last switch; };
  $_[0] == "10.26" && do { printf "Demeter\n"; last switch; };
  $_[0] == "10.27" && do { printf "Sabína\n"; last switch; };
  $_[0] == "10.28" && do { printf "Dobromila\n"; last switch; };
  $_[0] == "10.29" && do { printf "Klára\n"; last switch; };
  $_[0] == "10.30" && do { printf "Šimon, Simona\n"; last switch; };
  $_[0] == "10.31" && do { printf "Aurélia\n"; last switch; };
  $_[0] == "11.01" && do { printf "Denis, Denisa\n"; last switch; };
  $_[0] == "11.03" && do { printf "Hubert\n"; last switch; };
  $_[0] == "11.04" && do { printf "Karol\n"; last switch; };
  $_[0] == "11.05" && do { printf "Imrich\n"; last switch; };
  $_[0] == "11.06" && do { printf "Renáta\n"; last switch; };
  $_[0] == "11.07" && do { printf "René\n"; last switch; };
  $_[0] == "11.08" && do { printf "Bohumír\n"; last switch; };
  $_[0] == "11.09" && do { printf "Teodor\n"; last switch; };
  $_[0] == "11.10" && do { printf "Tibor\n"; last switch; };
  $_[0] == "11.11" && do { printf "Martin, Maroš\n"; last switch; };
  $_[0] == "11.12" && do { printf "Svätopluk\n"; last switch; };
  $_[0] == "11.13" && do { printf "Stanislav\n"; last switch; };
  $_[0] == "11.14" && do { printf "Irma\n"; last switch; };
  $_[0] == "11.15" && do { printf "Leopold\n"; last switch; };
  $_[0] == "11.16" && do { printf "Agnesa\n"; last switch; };
  $_[0] == "11.17" && do { printf "Klaudia\n"; last switch; };
  $_[0] == "11.18" && do { printf "Eugen\n"; last switch; };
  $_[0] == "11.19" && do { printf "Alžbeta\n"; last switch; };
  $_[0] == "11.20" && do { printf "Félix\n"; last switch; };
  $_[0] == "11.21" && do { printf "Elvíra\n"; last switch; };
  $_[0] == "11.22" && do { printf "Cecília\n"; last switch; };
  $_[0] == "11.23" && do { printf "Klement\n"; last switch; };
  $_[0] == "11.24" && do { printf "Emília\n"; last switch; };
  $_[0] == "11.25" && do { printf "Katarína\n"; last switch; };
  $_[0] == "11.26" && do { printf "Kornel\n"; last switch; };
  $_[0] == "11.27" && do { printf "Milan\n"; last switch; };
  $_[0] == "11.28" && do { printf "Henrieta\n"; last switch; };
  $_[0] == "11.29" && do { printf "Vratko\n"; last switch; };
  $_[0] == "11.30" && do { printf "Ondrej, Andrej\n"; last switch; };
  $_[0] == "12.01" && do { printf "Edmund\n"; last switch; };
  $_[0] == "12.02" && do { printf "Bibiána\n"; last switch; };
  $_[0] == "12.03" && do { printf "Oldrich\n"; last switch; };
  $_[0] == "12.04" && do { printf "Barbora, Barbara\n"; last switch; };
  $_[0] == "12.05" && do { printf "Oto\n"; last switch; };
  $_[0] == "12.06" && do { printf "Mikuláš\n"; last switch; };
  $_[0] == "12.07" && do { printf "Ambróz\n"; last switch; };
  $_[0] == "12.08" && do { printf "Marína\n"; last switch; };
  $_[0] == "12.09" && do { printf "Izabela\n"; last switch; };
  $_[0] == "12.10" && do { printf "Radúz\n"; last switch; };
  $_[0] == "12.11" && do { printf "Hilda\n"; last switch; };
  $_[0] == "12.12" && do { printf "Otília\n"; last switch; };
  $_[0] == "12.13" && do { printf "Lucia\n"; last switch; };
  $_[0] == "12.14" && do { printf "Branislava, Bronislava\n"; last switch; };
  $_[0] == "12.15" && do { printf "Ivica\n"; last switch; };
  $_[0] == "12.16" && do { printf "Albína\n"; last switch; };
  $_[0] == "12.17" && do { printf "Kornélia\n"; last switch; };
  $_[0] == "12.18" && do { printf "Sláva\n"; last switch; };
  $_[0] == "12.19" && do { printf "Judita\n"; last switch; };
  $_[0] == "12.20" && do { printf "Dagmara\n"; last switch; };
  $_[0] == "12.21" && do { printf "Bohdan\n"; last switch; };
  $_[0] == "12.22" && do { printf "Adela\n"; last switch; };
  $_[0] == "12.23" && do { printf "Nadežda\n"; last switch; };
  $_[0] == "12.24" && do { printf "Adam, Eva\n"; last switch; };
  $_[0] == "12.26" && do { printf "Štefan\n"; last switch; };
  $_[0] == "12.27" && do { printf "Filoména\n"; last switch; };
  $_[0] == "12.28" && do { printf "Ivana, Ivona\n"; last switch; };
  $_[0] == "12.29" && do { printf "Milada\n"; last switch; };
  $_[0] == "12.30" && do { printf "Dávid\n"; last switch; };
  $_[0] == "12.31" && do { printf "Silvester\n"; last switch; };
  printf "Nikto nemá meniny\n";;  
 }  
}

my $actual=`date "+%a %d %b %Y" | tr "\n" " "`;  
my $date=`date +%m.%d`;  

printf "$actual> "; # print actual date  

name($date); # print todays name  

printf "Tomorrow "; # print tomorrows name  

my $date=`date -d 'next day' +%m.%d`;
name($date);

exit 0;

Here's the script written in python:

#!/usr/bin/python
# coding: utf8

#-------------------------------------------
#      Author: KrisKo
#        Year: 2011
# Description:  script for showing namedays
#-------------------------------------------

# for executing bash commands
#import os  
import subprocess

def name(act): # function called from the bottom of the script  
 if act == "01-02": return "Alexandra, Karina"
 elif act == "01-03": return "Daniela" 
 elif act == "01-04": return "Drahoslav" 
 elif act == "01-05": return "Andrea"
 elif act == "01-06": return "Antónia"
 elif act == "01-07": return "Bohuslava"
 elif act == "01-08": return "Severín"
 elif act == "01-09": return "Alexej"
 elif act == "01-10": return "Dáša"
 elif act == "01-11": return "Malvína"
 elif act == "01-12": return "Ernest"
 elif act == "01-13": return "Rastislav"
 elif act == "01-14": return "Radovan"
 elif act == "01-15": return "Dobroslav"
 elif act == "01-16": return "Kristína"
 elif act == "01-17": return "Nataša"
 elif act == "01-18": return "Bohdana"
 elif act == "01-19": return "Drahomíra, Mário"
 elif act == "01-20": return "Dalibor"
 elif act == "01-21": return "Vincent"
 elif act == "01-22": return "Zora"
 elif act == "01-23": return "Miloš"
 elif act == "01-24": return "Timotej"
 elif act == "01-25": return "Gejza"
 elif act == "01-26": return "Tamara"
 elif act == "01-27": return "Bohuš"
 elif act == "01-28": return "Alfonz"
 elif act == "01-29": return "Gašpar"
 elif act == "01-30": return "Ema"
 elif act == "01-31": return "Emil"
 elif act == "02-01": return "Tatiana"
 elif act == "02-02": return "Erika, Erik"
 elif act == "02-03": return "Blažej"
 elif act == "02-04": return "Veronika"
 elif act == "02-05": return "Agáta"
 elif act == "02-06": return "Dorota"
 elif act == "02-07": return "Vanda"
 elif act == "02-08": return "Zoja"
 elif act == "02-09": return "Zdenko"
 elif act == "02-10": return "Gabriela"
 elif act == "02-11": return "Dezider"
 elif act == "02-12": return "Perla"
 elif act == "02-13": return "Arpád"
 elif act == "02-14": return "Valentín"
 elif act == "02-15": return "Pravoslav"
 elif act == "02-16": return "Ida, Liana"
 elif act == "02-17": return "Miloslava"
 elif act == "02-18": return "Jaromír"
 elif act == "02-19": return "Vlasta"
 elif act == "02-20": return "Lívia"
 elif act == "02-21": return "Eleonóra"
 elif act == "02-22": return "Etela"
 elif act == "02-23": return "Roman, Romana"
 elif act == "02-24": return "Matej"
 elif act == "02-25": return "Frederik, Frederika"
 elif act == "02-26": return "Viktor"
 elif act == "02-27": return "Alexander"
 elif act == "02-28": return "Zlatica"
 elif act == "03-01": return "Albín"
 elif act == "03-02": return "Anežka"
 elif act == "03-03": return "Bohumil, Bohumila"
 elif act == "03-04": return "Kazimír"
 elif act == "03-05": return "Fridrich"
 elif act == "03-06": return "Radoslav, Radoslava"
 elif act == "03-07": return "Tomáš"
 elif act == "03-08": return "Alan, Alana"
 elif act == "03-09": return "Františka"
 elif act == "03-10": return "Bruno, Branislav"
 elif act == "03-11": return "Angela, Angelika"
 elif act == "03-12": return "Gregor"
 elif act == "03-13": return "Vlastimil"
 elif act == "03-14": return "Matilda"
 elif act == "03-15": return "Svetlana"
 elif act == "03-16": return "Boleslav"
 elif act == "03-17": return "Ľubica"
 elif act == "03-18": return "Eduard"
 elif act == "03-19": return "Jozef"
 elif act == "03-20": return "Víťazoslav, Klaudius"
 elif act == "03-21": return "Blahoslav"
 elif act == "03-22": return "Beňadik"
 elif act == "03-23": return "Adrián"
 elif act == "03-24": return "Gabriel"
 elif act == "03-25": return "Marián"
 elif act == "03-26": return "Emanuel"
 elif act == "03-27": return "Alena"
 elif act == "03-28": return "Soňa"
 elif act == "03-29": return "Miroslav"
 elif act == "03-30": return "Vieroslava"
 elif act == "03-31": return "Benjamín"
 elif act == "04-01": return "Hugo"
 elif act == "04-02": return "Zita"
 elif act == "04-03": return "Richard"
 elif act == "04-04": return "Izidor"
 elif act == "04-05": return "Miroslava"
 elif act == "04-06": return "Irena"
 elif act == "04-07": return "Zoltán"
 elif act == "04-08": return "Albert"
 elif act == "04-09": return "Milena"
 elif act == "04-10": return "Igor"
 elif act == "04-11": return "Július"
 elif act == "04-12": return "Estera"
 elif act == "04-13": return "Aleš"
 elif act == "04-14": return "Justina"
 elif act == "04-15": return "Fedor"
 elif act == "04-16": return "Dana, Danica"
 elif act == "04-17": return "Rudolf"
 elif act == "04-18": return "Valér"
 elif act == "04-19": return "Jela"
 elif act == "04-20": return "Marcel"
 elif act == "04-21": return "Ervín"
 elif act == "04-22": return "Slavomír"
 elif act == "04-23": return "Vojtech"
 elif act == "04-24": return "Juraj"
 elif act == "04-25": return "Marek"
 elif act == "04-26": return "Jaroslava"
 elif act == "04-27": return "Jaroslav"
 elif act == "04-28": return "Jarmila"
 elif act == "04-29": return "Lea, Leo"
 elif act == "04-30": return "Anastázia"
 elif act == "05-02": return "Žigmund"
 elif act == "05-03": return "Galina"
 elif act == "05-04": return "Florián"
 elif act == "05-05": return "Lesia, Lesana"
 elif act == "05-06": return "Hermína"
 elif act == "05-07": return "Monika"
 elif act == "05-08": return "Ingrida"
 elif act == "05-09": return "Roland"
 elif act == "05-10": return "Viktória"
 elif act == "05-11": return "Blažena"
 elif act == "05-12": return "Pankrác"
 elif act == "05-13": return "Servác"
 elif act == "05-14": return "Bonifác"
 elif act == "05-15": return "Žofia, Sofia"
 elif act == "05-16": return "Svetozár"
 elif act == "05-17": return "Gizela"
 elif act == "05-18": return "Viola"
 elif act == "05-19": return "Gertrúda"
 elif act == "05-20": return "Bernard"
 elif act == "05-21": return "Zina"
 elif act == "05-22": return "Júlia, Juliana"
 elif act == "05-23": return "Želmíra"
 elif act == "05-24": return "Ela"
 elif act == "05-25": return "Urban"
 elif act == "05-26": return "Dušan"
 elif act == "05-27": return "Iveta"
 elif act == "05-28": return "Viliam"
 elif act == "05-29": return "Vilma"
 elif act == "05-30": return "Ferdinand"
 elif act == "05-31": return "Petrana, Petronela"
 elif act == "06-01": return "Žaneta"
 elif act == "06-02": return "Xénia, Oxana"
 elif act == "06-03": return "Karolína"
 elif act == "06-04": return "Lenka"
 elif act == "06-05": return "Laura"
 elif act == "06-06": return "Norbert"
 elif act == "06-07": return "Róbert"
 elif act == "06-08": return "Medard"
 elif act == "06-09": return "Stanislava"
 elif act == "06-10": return "Margaréta"
 elif act == "06-11": return "Dobroslava"
 elif act == "06-12": return "Zlatko"
 elif act == "06-13": return "Anton"
 elif act == "06-14": return "Vasil"
 elif act == "06-15": return "Vít"
 elif act == "06-16": return "Blanka, Bianka"
 elif act == "06-17": return "Adolf"
 elif act == "06-18": return "Vratislav"
 elif act == "06-19": return "Alfréd"
 elif act == "06-20": return "Valéria"
 elif act == "06-21": return "Alojz"
 elif act == "06-22": return "Paulína"
 elif act == "06-23": return "Sidónia"
 elif act == "06-24": return "Ján"
 elif act == "06-25": return "Olívia, Tadeáš"
 elif act == "06-26": return "Adriána"
 elif act == "06-27": return "Ladislav, Ladislava"
 elif act == "06-28": return "Beáta"
 elif act == "06-29": return "Peter, Pavol"
 elif act == "06-30": return "Melánia"
 elif act == "07-01": return "Diana"
 elif act == "07-02": return "Berta"
 elif act == "07-03": return "Miloslav"
 elif act == "07-04": return "Prokop"
 elif act == "07-05": return "Cyril, Metod"
 elif act == "07-06": return "Patrik, Patrícia"
 elif act == "07-07": return "Oliver"
 elif act == "07-08": return "Ivan"
 elif act == "07-09": return "Lujza"
 elif act == "07-10": return "Amália"
 elif act == "07-11": return "Milota"
 elif act == "07-12": return "Nina"
 elif act == "07-13": return "Margita"
 elif act == "07-14": return "Kamil"
 elif act == "07-15": return "Henrich"
 elif act == "07-16": return "Drahomír"
 elif act == "07-17": return "Bohuslav"
 elif act == "07-18": return "Kamila"
 elif act == "07-19": return "Dušana"
 elif act == "07-20": return "Iľja, Eliáš"
 elif act == "07-21": return "Daniel"
 elif act == "07-22": return "Magdaléna"
 elif act == "07-23": return "Oľga"
 elif act == "07-24": return "Vladimír"
 elif act == "07-25": return "Jakub"
 elif act == "07-26": return "Anna, Hana"
 elif act == "07-27": return "Božena"
 elif act == "07-28": return "Krištof"
 elif act == "07-29": return "Marta"
 elif act == "07-30": return "Libuša"
 elif act == "07-31": return "Ignác"
 elif act == "08-01": return "Božidara"
 elif act == "08-02": return "Gustáv"
 elif act == "08-03": return "Jerguš"
 elif act == "08-04": return "Dominika, Dominik"
 elif act == "08-05": return "Hortenzia"
 elif act == "08-06": return "Jozefína"
 elif act == "08-07": return "Štefánia"
 elif act == "08-08": return "Oskar"
 elif act == "08-09": return "Ľubomíra"
 elif act == "08-10": return "Vavrinec"
 elif act == "08-11": return "Zuzana"
 elif act == "08-12": return "Darina"
 elif act == "08-13": return "Ľubomír"
 elif act == "08-14": return "Mojmír"
 elif act == "08-15": return "Marcela"
 elif act == "08-16": return "Leonard"
 elif act == "08-17": return "Milica"
 elif act == "08-18": return "Elena, Helena"
 elif act == "08-19": return "Lýdia"
 elif act == "08-20": return "Anabela"
 elif act == "08-21": return "Jana"
 elif act == "08-22": return "Tichomír"
 elif act == "08-23": return "Filip"
 elif act == "08-24": return "Bartolomej"
 elif act == "08-25": return "Ľudovít"
 elif act == "08-26": return "Samuel"
 elif act == "08-27": return "Silvia"
 elif act == "08-28": return "Augustín"
 elif act == "08-29": return "Nikola, Nikolaj"
 elif act == "08-30": return "Ružena"
 elif act == "08-31": return "Nora"
 elif act == "09-01": return "Drahoslava"
 elif act == "09-02": return "Linda, Rebeka"
 elif act == "09-03": return "Belo"
 elif act == "09-04": return "Rozália"
 elif act == "09-05": return "Regina"
 elif act == "09-06": return "Alica"
 elif act == "09-07": return "Marianna"
 elif act == "09-08": return "Miriama"
 elif act == "09-09": return "Martina"
 elif act == "09-10": return "Oleg"
 elif act == "09-11": return "Bystrík"
 elif act == "09-12": return "Mária"
 elif act == "09-13": return "Ctibor"
 elif act == "09-14": return "Ľudomil"
 elif act == "09-15": return "Jolana"
 elif act == "09-16": return "Ľudmila"
 elif act == "09-17": return "Olympia"
 elif act == "09-18": return "Eugénia"
 elif act == "09-19": return "Konštantín"
 elif act == "09-20": return "Ľuboslav, Ľuboslava"
 elif act == "09-21": return "Matúš"
 elif act == "09-22": return "Móric"
 elif act == "09-23": return "Zdenka"
 elif act == "09-24": return "Ľuboš, Ľubor"
 elif act == "09-25": return "Vladislav"
 elif act == "09-26": return "Edita"
 elif act == "09-27": return "Cyprián"
 elif act == "09-28": return "Václav"
 elif act == "09-29": return "Michal, Michaela"
 elif act == "09-30": return "Jarolím"
 elif act == "10-01": return "Arnold"
 elif act == "10-02": return "Levoslav"
 elif act == "10-03": return "Stela"
 elif act == "10-04": return "František"
 elif act == "10-05": return "Viera"
 elif act == "10-06": return "Natália"
 elif act == "10-07": return "Eliška"
 elif act == "10-08": return "Brigita"
 elif act == "10-09": return "Dionýz"
 elif act == "10-10": return "Slavomíra"
 elif act == "10-11": return "Valentína"
 elif act == "10-12": return "Maximilián"
 elif act == "10-13": return "Koloman"
 elif act == "10-14": return "Boris"
 elif act == "10-15": return "Terézia"
 elif act == "10-16": return "Vladimíra"
 elif act == "10-17": return "Hedviga"
 elif act == "10-18": return "Lukáš"
 elif act == "10-19": return "Kristián"
 elif act == "10-20": return "Vendelín"
 elif act == "10-21": return "Uršuľa"
 elif act == "10-22": return "Sergej"
 elif act == "10-23": return "Alojzia"
 elif act == "10-24": return "Kvetoslava"
 elif act == "10-25": return "Aurel"
 elif act == "10-26": return "Demeter"
 elif act == "10-27": return "Sabína"
 elif act == "10-28": return "Dobromila"
 elif act == "10-29": return "Klára"
 elif act == "10-30": return "Šimon, Simona"
 elif act == "10-31": return "Aurélia"
 elif act == "11-01": return "Denis, Denisa"
 elif act == "11-03": return "Hubert"
 elif act == "11-04": return "Karol"
 elif act == "11-05": return "Imrich"
 elif act == "11-06": return "Renáta"
 elif act == "11-07": return "René"
 elif act == "11-08": return "Bohumír"
 elif act == "11-09": return "Teodor"
 elif act == "11-10": return "Tibor"
 elif act == "11-11": return "Martin, Maroš"
 elif act == "11-12": return "Svätopluk"
 elif act == "11-13": return "Stanislav"
 elif act == "11-14": return "Irma"
 elif act == "11-15": return "Leopold"
 elif act == "11-16": return "Agnesa"
 elif act == "11-17": return "Klaudia"
 elif act == "11-18": return "Eugen"
 elif act == "11-19": return "Alžbeta"
 elif act == "11-20": return "Félix"
 elif act == "11-21": return "Elvíra"
 elif act == "11-22": return "Cecília"
 elif act == "11-23": return "Klement"
 elif act == "11-24": return "Emília"
 elif act == "11-25": return "Katarína"
 elif act == "11-26": return "Kornel"
 elif act == "11-27": return "Milan"
 elif act == "11-28": return "Henrieta"
 elif act == "11-29": return "Vratko"
 elif act == "11-30": return "Ondrej, Andrej"
 elif act == "12-01": return "Edmund"
 elif act == "12-02": return "Bibiána"
 elif act == "12-03": return "Oldrich"
 elif act == "12-04": return "Barbora, Barbara"
 elif act == "12-05": return "Oto"
 elif act == "12-06": return "Mikuláš"
 elif act == "12-07": return "Ambróz"
 elif act == "12-08": return "Marína"
 elif act == "12-09": return "Izabela"
 elif act == "12-10": return "Radúz"
 elif act == "12-11": return "Hilda"
 elif act == "12-12": return "Otília"
 elif act == "12-13": return "Lucia"
 elif act == "12-14": return "Branislava, Bronislava"
 elif act == "12-15": return "Ivica"
 elif act == "12-16": return "Albína"
 elif act == "12-17": return "Kornélia"
 elif act == "12-18": return "Sláva"
 elif act == "12-19": return "Judita"
 elif act == "12-20": return "Dagmara"
 elif act == "12-21": return "Bohdan"
 elif act == "12-22": return "Adela"
 elif act == "12-23": return "Nadežda"
 elif act == "12-24": return "Adam, Eva"
 elif act == "12-26": return "Štefan"
 elif act == "12-27": return "Filoména"
 elif act == "12-28": return "Ivana, Ivona"
 elif act == "12-29": return "Milada"
 elif act == "12-30": return "Dávid"
 elif act == "12-31": return "Silvester"
 return "Nikto nemá meniny"  

#execute bash command and return its output
def runBash(actual):
    p = subprocess.Popen(actual, shell=True, stdout=subprocess.PIPE)
    out = p.stdout.read().strip()
    return out  #This is the stdout from the shell command

#store commands for execution
date='date +%m-%d'
actual='date "+%a %d %b %Y"'

print (runBash(actual) + " > " + name(runBash(date)))
date='date -d \'next day\' +%m-%d'  
print ("Tmrw " +  name(runBash(date)))# print tomorrows name  

exit(0) 
 

No comments:

Post a Comment