Pass arguments into a function - Linux Shell Scripting Tutorial - A Beginner's handbook. Shell functions have their own command line argument.
Use variable $1, $2.. $n to access argument passed to the function. The syntax is as follows:
Stringhe. Testing and Branching. ….~Unix and Linux~….. Utili.