Linux Learning
Search This Blog
Monday, August 2, 2010
Arguments in scripts.
How do you refer to the arguments passed to a shell script?
Answer -
$1
,
$2
and so on.
$0
is your script name.
How do you find out the number of arguments passed to the shell script?
Answer -
$#
Please Leave us with your comments and Queries/Suggestions.
I will try to reply asap.
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment