![]() |
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 |
| diff between tcsh and csh -f | mahendrakamath | UNIX for Dummies Questions & Answers | 2 | 11-12-2007 07:19 AM |
| diff | tungaw2004 | UNIX for Dummies Questions & Answers | 3 | 04-25-2007 10:54 AM |
| diff command | gilead29 | UNIX for Dummies Questions & Answers | 7 | 03-09-2004 09:12 PM |
| diff 2 files; output diff's to 3rd file | blt123 | Shell Programming and Scripting | 2 | 05-28-2002 11:29 AM |
| diff and ed? | Brototype | UNIX for Dummies Questions & Answers | 2 | 10-29-2001 02:30 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
|||||
|
An example to help you understand better.
$# - Will give you the number of arguments passed to the script $@ - Will list all the arguments passed Code:
/export/home/test/mons/UnixForum>cat test.sh #!/bin/ksh print "The number of arguments passed to this shell script is " $# print "The arguments passed are as follows" print "$@" Code:
/export/home/test/mons/UnixForum>test.sh hai welcome to unixforum .com The number of arguments passed to this shell script is 5 The arguments passed are as follows hai welcome to unixforum .com |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|