![]() |
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 |
| Parameter problem in my script | Laibro | Shell Programming and Scripting | 11 | 06-02-2008 03:51 PM |
| Pass parameter into script | alfredo | Shell Programming and Scripting | 2 | 04-08-2008 10:40 PM |
| passing parameter from Shell-script to Sql-script | subodhbansal | Shell Programming and Scripting | 0 | 09-21-2007 07:15 AM |
| Parameter to script | mahabunta | Shell Programming and Scripting | 2 | 02-13-2007 05:33 PM |
| Pass Parameter to Another Script | rvprod | UNIX for Dummies Questions & Answers | 4 | 04-05-2002 01:07 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Using last parameter within a script?
Hi All!
I cant seem to work out how to use the last parameter passed to a shell script within the script itself. For example, if I dont know how many parameters will be passed to the script, but want to work on the last one, I know the last parameter will be $x with x being the number stored in $# So, if I pass 4 parameters from the shell like so: $myScript param1 param2 param3 And I want to use param three within the script, how can I do this? Many thanks, Adam |
|
||||
|
trouble for over 9 files
I realize this is a long dead post, but I found it useful..
Trouble is, it only works for me for up to 9 files. When a second digit appears it breaks, using the $"$first digit" appended by the second. I'm using freebsd. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|