Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Mar 2011
    Posts
    2

    Bash Script Help


    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 !

  2. #2
    Linux Guru Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,252
    Homework questions are not allowed on this forum, as per the forum rules:
    http://www.linuxforums.org/forum/lin...ums-rules.html

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •