Hello people, I am new to the forum and to scripting and I'm honored to be a part of the Forum
At the moment I'm learning to do basic scripting for school.
Now I got 2 assignments that I do not understand. The case scripting I have mastered a bit. But now I have an assingment to make with ''set date'' and I hope you guys can help me
First assignment is to make a script where that knows when it is Morning,afternoon or evening.
It must use $LOGINNAME to determine whether it's
Good morning <loginname>
Good afternoon <loginname>
Good evening < loginname>
So when you for example put in the commandline: ./timeofday
It must say Good Morning Patrick ( if its morning ).
Or Good afternoon Patrick ( if its the afternoon )
I hope you guys understand what I mean, my english isnt very good.
Second assignment is to make a script that when you put in a ''letter'' it says: You have entered the letter M
And when you put in number it says: You have entered the number 7.
I hope you guys can help me with it.
Much Appreciated
Kind Regards
hulsi