Question: Write a Bash shell script named hello.sh that a. Prints different messages depending on the time of day when it is executed b. Print Hello

Write a Bash shell script named hello.sh that

a. Prints different messages depending on the time of day when it is executed

b. Print Hello , it is

and noon (exclusive)

c. Print Hello , it is

and 6pm (exclusive)

d. Print Hello , it is

midnight (exclusive)

e. Print Hello , it is

and 6am (exclusive)

f. Replace with the actual username of the user running the script

g. Replace

h. This script should not take any argument, so if there is any argument supplied print an error

message and exit

i. Hint: Use whoami and date commands

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!