Debugging shell scripts
All bash shell scripts must begin with the string:’
However, if you want to see exactly what’s going on while a script is running, start your script with
instead. The shell will report back to you with every step, making it much easier to see exactly what’s going on (and thus how to fix it if necessary).
Posted in Scripting
(comments are closed).