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.
- 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.
No comments:
Post a Comment