Thursday, December 18, 2014

Shell Scripting : How to specify positional parameters greater than 9?

In shell scripting, the positional parameters are specified by $0, $1, $2, $3, $4, $5, $6, 47, $8, $9

To specify positional parameters greater than 9, it can done by enclosing in curly brackets as follows ${10}, ${11} and so on.

$0 is the name of the script itself, $1 is the first argument, $2 is the second argument and so on

No comments:

Post a Comment