Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Write a shell script called SpellOutDate that prints the detail of the current date in separate lines. For example if the current date on

image text in transcribed
1. Write a shell script called SpellOutDate that prints the detail of the current date in separate lines. For example if the current date on the system is Thu Jan 30 10:57:20 CST 2020 Then when you run your script as: $ SpellOutDate Then the output should be: Time: 10:57:20 Today is: Thursday Day of the month: 30 Month: January Year: 2020 2. Write a shell script called average that accepts three numbers as input (command line arguments) and displays the average of the three. For example, if your run this script as: $ average 18 12 30 The script displays The average of 18, 12 and 30 is 20 3. Write a shell script called sum that sums the numbers passed to it as arguments on the command line and displays the results. Use the for loop construct in your script. This script should work for any number of arguments. For example, if your run this script as: $ sum 10 20 30 40 The script displays the following: 10 + 20 + 30 + 40 = 100

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions

Question

Describe a department managers role in the union organizing process

Answered: 1 week ago

Question

=+90 percent of all oil refineries) into several smaller companies

Answered: 1 week ago