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.




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