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
and noon (exclusive)
c. Print Hello
and 6pm (exclusive)
d. Print Hello
midnight (exclusive)
e. Print Hello
and 6am (exclusive)
f. Replace
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
Get step-by-step solutions from verified subject matter experts
