I know that shell scripts just run commands as if they were executed in at the command prompt. I'd like to be able to run shell scripts as if they were functions... That is, taking an input value or string into the script. How do I approach doing this?
|
The shell command and any arguments to that command appear as numbered shell variables: Common ways of dealing with this involve shell commands |
|||||
|
You can also pass output of one shell script as an argument to another shell script.
Within shell script you can access arguments with numbers like |
||||
|
|
|
You can access passed arguments with
|
|||
|
|
