![]() |
|
|
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 |
| Help with a perl subroutine regex | jmd2004 | Shell Programming and Scripting | 11 | 12-03-2008 01:11 AM |
| Subroutine Hung | bintaleb | High Level Programming | 3 | 12-03-2008 01:03 AM |
| Using the passwdpolicy() subroutine. | syndex | AIX | 0 | 10-02-2008 09:54 PM |
| chpass subroutine not updating NIS | rmm47 | High Level Programming | 1 | 03-30-2007 11:30 AM |
| Problem in subroutine calling | sarwan | Shell Programming and Scripting | 1 | 01-17-2006 02:22 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Calling a subroutine with arguments
Hello,
I am having problem calling a subroutine with arguments, can any help? is the approach I am using correct? main() { # This is just a subset of the code #$b & $lnum is already define in this section of the code checkboard $b $lnum } checkboards() { ln=$lnum mycounter=1 if [ "$b" > 1 ] ; then while [ "$b" < "$mycounter" ] ; do sed -n $ln'p' TSimWager.txt | printf ' %s\n' $c let ln=ln+1 let mycounter=mycounter+1 #echo "\nWager Number ${ln} is:" $c done fi } |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|