pass variable to sh file code example
Example 1: run sh with parameter
> ./myscript myargument
myargument becomes $1 inside myscript.
Example 2: 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