![]() |
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 |
| For Loop with Strings as parameters | kadishmj | Shell Programming and Scripting | 6 | 10-06-2008 03:57 AM |
| sed and parameters | scotty_123 | Shell Programming and Scripting | 7 | 03-26-2007 04:22 AM |
| Need Parameters Help. | james2006 | Shell Programming and Scripting | 3 | 06-08-2006 10:46 AM |
| how to get the similar function in while loop or for loop | trynew | Shell Programming and Scripting | 3 | 06-17-2002 11:09 AM |
| tar parameters | kmar | UNIX for Advanced & Expert Users | 4 | 10-23-2001 03:03 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Parameters in loop
Hi,
I am trying to write a script which will read inputs form user and process those files, I have issue reading the input parameters in a loop. Following is the script... Code:
I run the script as ./Script.sh 3 table1 table 2 table3
NumberOfTables=$1
let TableCount=1
while [ ${NumberOfTables} -gt 0 ]
do
TableName='$'$TableCount
db2 "runstats on table ${TableName} and indexes all"
let TableCount=TableCount+1
let NumberOfTables=NumberOfTables-1
done
exit 0
can some one help me on this.... |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|