This is really essential sometime, we want to check the syntax and validate our script rather then running it upfront.
Available Options:
Debugging Options set -o Option Command-line Option Action
noexec -n Don't run commands; check for syntax errors only
verbose -v Echo commands before running them
xtrace -x Echo commands after command-line processing
Example:
$bash -n myscript.sh
$/bin/sh -nv myscript.sh
Enjoy!!!
DEBU
Subscribe to:
Post Comments (Atom)
🔭 First Impression: Exploring Grafana Mimir ... After Years with Thanos! Not an observability( OE ) purist, but I do appreci...
-
Being in Operations its quite common to face piled up backlog on a regular basis, but at the same time to mitigate the same is even more fun...
-
I have been having a great company with some of the very talented NCG’s ( New College Hires/ Grads ) last ~2yrs. I work for Intuit ...
-
This is NOT a post about how to 'Tie a Tie'. Rather , just an effort to remember a few fundamentals before we strike a convers...
No comments:
Post a Comment