Where do I start with bourne shell program?

Posted Monday, February 15, 2010 by admin


I have to make an address book using bourne shell that will search for a name or address and edit or add an entry. I’m suppose to have options of -s to search, -a to add, -e to edit. Could someone give me an example of how I should code the -a, -n, -e part. I tried searching on the internet but can’t find anything.
Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • StumbleUpon
  • Ask

1 Comment on "Where do I start with bourne shell program?"

  • jplatt39 said on Feb 16th, 2010 at 12:16 PM:

    When you create a file to be run from the command line, the name of the — shell script in this case — you are running is the first name on the command line. It is usually stored in the variable $0. The next one would be $1, So $1 would be the variable you refer to in your program as in case $1 in…esac. Beyond that I shall simply point you to one of the best tutorials on the web.

    Yes it’s about BASH

Leave a Comment

Copyright © 2012 Ebook program
Design by ID Themes