![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| getopt/getopts and csh | Guillermo Lopez | UNIX for Dummies Questions & Answers | 2 | 04-25-2008 04:21 PM |
| getopt | Hitori | Shell Programming and Scripting | 6 | 07-10-2006 11:07 AM |
| getopt help | problems | Shell Programming and Scripting | 1 | 05-02-2006 04:23 AM |
| using getopt with a switch statement | gammarays | Shell Programming and Scripting | 6 | 02-09-2005 02:03 AM |
| question about getopt() | angelfly | High Level Programming | 1 | 09-16-2002 02:04 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
getopt help
I m trying to use getopt
This is my script, but it doesn't take argument in variable, Please help. Code:
set - - `getopt mscl: $*` if [ $? != 0 ] then echo "Exiting...." exit 2 fi for i in $* do case $i in -m) MAIL="$i"; shift;; -s) SCRIPT=$OPTARG; shift;; -c) COB=$OPTARG; shift;; -l) LOC=$OPTARG; shift;; #--) echo "\nUsage: [-m MAIL] [-b BRANCH ] [-p PURPOSE] [-s SCRIPT] [-c COBdate] [-l LOCATION] [-h help]\n";SHIFT;; esac done |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|