Question
Linux using PuTTY Using the following data file (delimited by a space or tab) named (section9.4.input) November 400 January 200 June 400 March 200 April
Linux using PuTTY
Using the following data file (delimited by a space or tab) named (section9.4.input)
November 400
January 200
June 400
March 200
April 200
May 300
July 400
August 300
September 400
February 300
October 300
December 200
Write a script named (section9.4.sh) that will use a loop structure to process the data file line by line. The script will send the output to file (section9.4.out) in the following format:
Month Sales
-------- -------
January 200
February 300
March 200
April 200
May 300
June 400
July 400
August 300
September 400
October 300
November 400
December 200
======
Total show the total
Average show the average
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