In linux, in bash scripting, functions arguments are handled via command line argument (just like the shell script itself) and the arguments can be accessed via the [...] syntax
Answer
$
^^
Question
In linux, in bash scripting, functions arguments are handled via command line argument (just like the shell script itself) and the arguments can be accessed via the [...] syntax
Answer
?
Question
In linux, in bash scripting, functions arguments are handled via command line argument (just like the shell script itself) and the arguments can be accessed via the [...] syntax
Answer
$
^^
If you want to change selection, open document below and click on "Move attachment"
Pass arguments into a function - Linux Shell Scripting Tutorial - A Beginner's handbook al - A Beginner's handbook Pass arguments into a function From Linux Shell Scripting Tutorial - A Beginner's handbook Jump to: navigation, search ← Calling functions Home local variable → Shell <span>functions have their own command line argument. Use variable $1, $2..$n to access argument passed to the function. The syntax is as follows: name(){ arg1=$1 arg2=$2 command on $arg1 } To invoke the the function use the following synt
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.