Results 1 to 2 of 2
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-08-2011 #1
- Join Date
- Mar 2011
Bash Script Help
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 !
- 03-08-2011 #2
Homework questions are not allowed on this forum, as per the forum rules:
Some Bash scripting commands that you may want to look into are "read", "cut", and "awk". I will also point you towards these guides:
Bash Guide for Beginners
Advanced Bash-Scripting Guide
If you have any specific questions about some concept later, feel free to ask.