Answer:
Hi there! We can use the "date" function and formats available to us along with the "echo"command to print the date in the format required in the question. Please see below for the details.
Step-by-step explanation:
SpellOutDate.sh
#!/bin/bash
echo "Time: $(date +'%T')"
echo "Today is: $(date +'%A')"
echo "Day of Month: $(date +'%u')"
echo "Month: $(date +'%B')"
echo "Year: $(date +'%G')"
running from the command line, the code will produce the results as:
./SpellOutDate.sh
Time: 11:12:53
Today is: Monday
Day of Month: 1
Month: March
Year: 2020