How to successfully debug a shell Script | Sedulity Groups
Debugging a shell script is very essential to check your script for any errors. There are different debugging tips and tricks useful for running your scripts
without any flaw.
without any flaw.
-
When executing a shell script use sh command with below
options to debug a shell script in effective way.
Note: A small difference between –x and –v is
that –v echo’s the line as it is read (So it will even
display comments too.), whereas –x flag causes each command to be
echoed as it is executed.
that –v echo’s the line as it is read (So it will even
display comments too.), whereas –x flag causes each command to be
echoed as it is executed.
- Commands /
- Debugging /
- Lab /
- Labs /
- Script /
- Script Name /
- Sh /
- Sh -v /
- Sh -x /
- Sh Commands /
- shell /
- Shell Scripting /
- Syntax /
- Syntax Error /
- Syntax Errors /