![]() |
|
|
|
|
|||||||
| 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 |
| read arguments from shell | DNAx86 | High Level Programming | 1 | 05-11-2008 08:56 AM |
| read number of arguments in c shell | skumar11 | Shell Programming and Scripting | 1 | 09-07-2007 01:11 PM |
| Bash: Reading 2 arguments from a command line | Vozx | Shell Programming and Scripting | 0 | 12-08-2005 02:23 PM |
| Shell script with arguments | sankar6254 | Shell Programming and Scripting | 3 | 12-22-2003 06:21 AM |
| Arguments to a shell program | csvenkata | UNIX for Advanced & Expert Users | 3 | 10-23-2001 06:36 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi!,
How can I check the number of arguments passed from the shell in a bash shell ? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
one way
Code:
echo $# |
|||
| Google The UNIX and Linux Forums |