![]() |
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 |
| Using last parameter within a script? | sugarat | Shell Programming and Scripting | 5 | 03-22-2009 01:13 AM |
| Parameter problem in my script | Laibro | Shell Programming and Scripting | 11 | 06-02-2008 02:51 PM |
| Pass parameter into script | alfredo | Shell Programming and Scripting | 2 | 04-08-2008 09:40 PM |
| passing parameter from Shell-script to Sql-script | subodhbansal | Shell Programming and Scripting | 0 | 09-21-2007 06:15 AM |
| Pass Parameter to Another Script | rvprod | UNIX for Dummies Questions & Answers | 4 | 04-05-2002 12:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi ,
we can supply as many parameters to a script. simplest way is : PHP Code:
PHP Code:
Sumeet |
|
||||
|
The above only works depending on your ksh version.
What always should work is using the "shiift" command. # cat ff.sh #!/usr/bin/ksh echo $1 echo $2 echo $3 echo $4 echo $5 echo $6 echo $7 echo $8 echo $9 shift 9 echo $1 echo $2 echo $3 echo $4 echo $5 echo $6 # ./ff.sh a b c d e f g h i j k l m n o p a b c d e f g h i j k l m n o I provided an extra argument ("p") on purpose. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|