Unix

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • SUMARY: ksh options help

    0 answers - 709 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    Thanks to vladimir, john, ceri, ric, christopher, brad, matthew
    People were mentioning to use getopts which i had looked at, but the
    result which seems to work nicely is to use a case within a case.
    Specifically mathew stier and Ric Anderson suggested this :-
    -config_file)
    ## Below is getting messy. Look at getopts ##
    case "$2" in
    ''|-*)
    usage
    exit 1
    ;;
    esac
    shift
    config_file=$1
    ;;
    and
    -config_file)
    case "$2" in
    -* | "" )
    usage;
    exit 1;
    ;;
    * )
    shift;
    config_file=$1;
    ;;
    esac
    ;;
    work :)
    sunmanagers mailing list
    sunmanagers (AT) sunmanagers (DOT) org

Re: SUMARY: ksh options help


max 4000 letters.
Your nickname that display:
In order to stop the spam: 3 + 2 =
QUESTION ON "Unix"

EMSDN.COM