This might be a very dumb question to ask..
But, Lets say I have a C++ code which runs like this from terminal
./sayhello --name=fraz
outputs
Hello, fraz!
Now, I want to write a shell script which takes an input from the user in that shell and gives me the output.
How can I achieve this?
Any suggestions
If you want to read the name from standard input:
Or, if you want to read the name from the shell script’s command line:
You may need to specify the location of your
sayhellobinary:or
Or even: