Answered step by step
Verified Expert Solution
Question
1 Approved Answer
LINUX OS - Do the following with a shell script / pico / cat Write a shell/awk script, myaverage3 , that reads in 3 numbers
LINUX OS - Do the following with a shell script / pico / cat
Write a shell/awk script, myaverage3, that reads in 3 numbers and then uses a self-defined function to compute the average. The average should be displayed in the main script, not inside the function you define. Please use the following testing cases to test your script:
$ ./myaverage3 3 4 8
The average is 5
$./myaverage4 -2 -9 -7
The average is -6
a) Please provide your script below (8 points):
b) The screenshot (2 points):
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