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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started