![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem printing the property of xml file via shell script | neeto | Shell Programming and Scripting | 4 | 04-16-2008 10:39 AM |
| Shell script $0 argument | painulyarun | UNIX for Dummies Questions & Answers | 2 | 03-25-2008 03:32 PM |
| Problem when passing argument to a shell script | sumesh.abraham | Shell Programming and Scripting | 9 | 12-13-2006 08:07 AM |
| Argument list too long - Shell error | dad5119 | Shell Programming and Scripting | 8 | 03-03-2006 11:57 AM |
| shell script argument parsing | rmjoe | Shell Programming and Scripting | 1 | 07-28-2005 12:37 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
printing last argument in shell script
All,
I am having a shell script and i will pass different argument diferent time . Please tell me how can i find the last argument that i passsed each time when i exec the script. Thanks, Arun. |
| Forum Sponsor | ||
|
|
|
|||
|
With bash version 3.0 or higher you can use
Code:
${BASH_ARGV[0]}
Quote:
|