![]() |
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 |
| Creating functions in shell script | gjithin | Shell Programming and Scripting | 1 | 05-10-2008 03:15 AM |
| creating dynamic shell script | sundarkumars | Shell Programming and Scripting | 2 | 02-13-2008 11:28 AM |
| plz help me by creating required shell script | girish.batra | Shell Programming and Scripting | 5 | 02-05-2008 02:11 AM |
| Shell script creating too many processes. | Miller_K | Shell Programming and Scripting | 3 | 05-22-2007 11:42 AM |
| help on creating shell script | master_6ez | Shell Programming and Scripting | 1 | 11-21-2004 09:21 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I have an assignment in my programming class to write a shell script that will use command line parameters, display the # of parameters, display all parameters on the command line and display the parameters $0-$9. I understand some of the code (I will be using 'n' to represent the count through the 'for' loop), but I don't understand how to display $0-$9 inside the loop. The book I am using dosen't explain it very well (Unix Unbounded a Beginning Approach - Amir Afzel). My instructor isn't very helpful either. Can someone please give me some examples? Also, how do you echo a message to say $# = 5, etc.?
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|