pass parameter into shell script code example
Example 1: get additional parameters linux scripting
$ cat myscript
#!/bin/bash
echo "First arg: $1"
echo "Second arg: $2"
$ ./myscript hello world
First arg: hello
Second arg: world
Example 2: run sh with parameter
> ./myscript myargument
myargument becomes $1 inside myscript.