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
Get step-by-step solutions from verified subject matter experts
