Hi ...

I am trying to write a simple install script on Linux and would like to see
if anybody can help me with the following:

the script is a shell script (#!/bin/sh) which I want to invoke as follows:

appinstall -s <src path> [-t <trg path>] [-softlinks]

basically, src path is where the application temporarily resides in and is
required, and trg path is where I want to install the application, which by
default (if not specified) uses /usr/local/bin. also, if the user specifies
-softlinks, then softlinks for the app libraries will be created in
/usr/lib.

my problem is figuring out how to tell from a shell script if the user
specified -s, -t, and -softlinks, and how to retrieve their associated
values. I think awk or sed, or both, help me achieve this, but I have never
used either one. can somebody give me a little script or something that i
can use as an example?

thanks in advance!!!

Benjamin S. Vera-Tudela
Software Engineer
IBM e-boss - Austin, Texas
Phone: (512)-838-8246
E-Mail: [EMAIL PROTECTED]


---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to