Hello,
How can I get my script to echo a string that is input right after the script name (when executing the script)? (Ex: '$ ./myscript hello!' echos 'hello!').
Right now I only know how to do:
read string
echo $string
But the user has to hit enter after executing the script '$ ./myscript' and then input the string. Thanks for your help.
How can I get my script to echo a string that is input right after the script name (when executing the script)? (Ex: '$ ./myscript hello!' echos 'hello!').
Right now I only know how to do:
read string
echo $string
But the user has to hit enter after executing the script '$ ./myscript' and then input the string. Thanks for your help.