How do you pass arguments in bash?

Việt Quân

New member
How do you pass arguments in bash?
Answer
To pass any number of arguments to the bash function simply put them right after the function’s name, separated by a space. It is a good practice to double-quote the arguments to avoid the misparsing of an argument with spaces in it. The passed parameters are $1 , $2 , $3 …
 

Tìm kiếm

Back
Top