Question: $h =`date +%h` if [ $h -lt 12 ]; then echo Good morning elif [ $h -lt 18 ]; then echo Good afternoon else echo

$h =`date +%h`

if [ $h -lt 12 ]; then echo "Good morning" elif [ $h -lt 18 ]; then echo "Good afternoon" else echo "Good evening" fi echo "Today is $(date +%A): curr_date" echo "There are $(users | wc -w) users on the system today" echo "Your current directory is $(pwd)" echo "Your home directory is $HOME and" echo "All of your files are currently taking up $(du -hs | cut -f1) in storage space" echo

this is my current code, i'm trying to get the current date after my echo today is:

This is in Unix btw, should be simple, just stuck at where i'm wrong

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!