Consider the following shell script
The ls does not not give any shell text output. Now, how do we get output text on screen while the command is being executed?
I can print the value of val to get the output, but using echo is not the point. So, using the following line is not the case
So, in nutshell, how do I get the output of current command being executed in shell simultaneous as if you were executed the command by itself?