What is $2 in shell script?

What is $2 in shell script?
Answer
$0 is the name of the script itself (script.sh) $1 is the first argument (filename1) $2 is
the second argument (dir1) $9 is the ninth argument.
 

Tìm kiếm

Back
Top