LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash friday the 13th script (https://www.linuxquestions.org/questions/linux-newbie-8/bash-friday-the-13th-script-4175512870/)

hayko27 07-31-2014 12:09 PM

bash friday the 13th script
 
Hi,

I need to construct a bash script that will accept one parameter(any year between 1900 and 2100)which will then print the months of the calendar that have a Friday the 13th. For example if I run

friday13 2015

it would print February

or friday13 2099

it would print September, October, December

*this is not exact^, I'm just giving an example.

Help is much appreciated as soon as possible.
Thank you in advance.

szboardstretcher 07-31-2014 12:10 PM

Thats nice. What do you have so far?

You must be in the same class as these two people: http://www.linuxquestions.org/questi...ar-4175503292/

Warning though,.. not figuring this out on your own, according to what you have been taught, is going to make it harder and harder as the class goes on.

Habitual 07-31-2014 12:46 PM

Quote:

Originally Posted by szboardstretcher (Post 5212612)
Thats nice. What do you have so far?

You must be in the same class as these two people: http://www.linuxquestions.org/questi...ar-4175503292/

Lol.
https://www.linuxquestions.org/quest...pt-4175511090/
https://www.linuxquestions.org/quest...pt-4175512870/

and 33 other hits at https://www.google.com/#q=bash-frida...xquestions.org


All times are GMT -5. The time now is 08:27 PM.