I have a shell script and when invoking it
./test it asks for an input.I 've seen a quicker way just by writing at once
./test myInput ,how is that achievable?
You can access the command line arguments in your shell script with the special variables
$0 is the name of your script.
If you need access more than 9 command line arguments, you can use the
shift command. Example:
shift 2 renames
Please remember to put the arguments inside doubles quotes (e.g.
"$1"), otherwise you can get problems if they contain whitespaces.