Is there a way to run scripts in
bash that makes it so that it prints each line of the script before executing it? This would be really useful to me for debugging...
$./myscript.sh echo "Hello" Hello
I would be able to see exactly how far my script has gotten, and what it is doing.
sh -x myscript.sh