Hello,
Firstly i'd like to introduce myself before I ask my question, i am currently studying a "Network Operating System 2" course, and in the syllabus the professor decided to use Ubuntu Linux for us.
This is a first for me and I am truly greatly interested in the OS. It seems like a solid system once you get to know the deep foundations of it.
The professor has already given us an assignment, but I feel its not fair as its just a bit too much from out of what he taught us .. He did not teach us what he is asking for.
He asked us to create to a text file which lists the Sales from two Salespersons, and each one will have an amount for each month .. So 12 entries for each salesperson.
Using that text file, we should write a bash script which would read the values from the above text file, and produce a "Monthly Sales" text file, which shows the total sales of each month (combined from both the salespersons)..
I would like to ask for some guidance, some help on how to start. It's just that he didn't teach us any commands about this matter..
Thank you so much for reading !
I have formatted the text file as follows:
Code:
Salesman 1
100
200
300
400
500
600
700
800
900
1000
1100
1200
Salesman 2
1200
1100
1000
900
800
700
600
500
400
300
200
100