Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

$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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Instant Reference

Authors: Gruber, Martin Gruber

2nd Edition

0782125395, 9780782125399

More Books

Students also viewed these Databases questions