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?
Take the 2-minute tour
×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.
|
||||
|
You can access the command line arguments in your shell script with the special variables If you need access more than 9 command line arguments, you can use the Please remember to put the arguments inside doubles quotes (e.g. |
|||||||||
|