![]() |
|
|
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 |
| tr explanation please | convenientstore | Shell Programming and Scripting | 1 | 05-31-2007 12:42 AM |
| explanation for the syntax | chandhar | Shell Programming and Scripting | 1 | 04-10-2007 05:45 AM |
| Need explanation for the syntax(code) | chandhar | Shell Programming and Scripting | 1 | 03-21-2007 04:59 AM |
| ksh syntax explanation - from mimetool | chaandana | Shell Programming and Scripting | 2 | 07-27-2005 02:28 AM |
| AWK explanation | penfold | Shell Programming and Scripting | 2 | 04-05-2005 10:46 PM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hi it will be very useful for me if anyone gives step by step explanation for the below code:
USAGE="check -S dbserver [-D dbname] [-U userid] where -S dbserver specifies name of database server -D dbname specifies name of database on database server -U userid specifies name of user for database" while getopts ":S:D:U:" OPTION "$@" do case $OPTION in S) SRVR=$OPTARG;; D) DB="$OPTARG"; USEDB="use $OPTARG";; U) UID=$OPTARG;; :) MISSINGOPTARG="$MISSINGOPTARG -$OPTARG";; ?) if [ "$OPTARG" = "?" ] then HELP=1 else UNEXPECTEDOPT="$UNEXPECTEDOPT -$OPTARG"; fi;; esac done Last edited by chandhar; 03-21-2007 at 08:12 AM.. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|