question about about Bourne Shell programming

This is a discussion on question about about Bourne Shell programming within the Linux Programming forums, part of the Platform Specific Boards category; I am new to Linux programming. I would like to write a Bourne shell script and it is invoked as ...

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    41

    question about about Bourne Shell programming

    I am new to Linux programming. I would like to write a Bourne shell script and it is invoked as follows
    Code:
    script1 <classList> 
    for example
            script1 /A/B/list 
    <classList> is the full path name of a list of students in a class.
    Each line is of the form <loginId> whitespace <name>.  For example,the file may look like this
    cs123456    David  A. Smith
    cs234567    Mark Jones
    etc.
    Can anybody help me out.

  2. #2
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Katy, Texas
    Posts
    2,309
    You have described just about nothing.

    You want a shell script that is passed the path to a file, and you have described what the file looks like.

    So... the $64 question is, what is this script supposed to do?
    Mac and Windows cross platform programmer. Ruby lover.

    Quote of the Day
    12/20: Mario F.:I never was, am not, and never will be, one to shut up in the face of something I think is fundamentally wrong.

    Amen brother!

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,893
    This looks very much like homework. Before you describe what the script should do and then simply ask for help again, review the homework policy of this site.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. shell question
    By jordanguyoflove in forum C Programming
    Replies: 3
    Last Post: 03-10-2009, 09:39 AM
  2. shell execution question
    By Overworked_PhD in forum Linux Programming
    Replies: 0
    Last Post: 10-19-2008, 09:52 AM
  3. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 10:47 PM
  4. Virtual Folder Question (Shell)
    By The Dog in forum Windows Programming
    Replies: 1
    Last Post: 04-03-2003, 03:18 PM
  5. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21