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...

-
RTO = Recovery Time Objective tells how quickly you will able to resume the normal operations back by connecting users to the data. ...
-
Effective Time-management and Time-boxing is a concern for 'always ready people'. Being from a background that I am from, I am...
-
Why I started blogging... Well, this is the ultimate question I get asked when I tell people I started a blog! I have taken a lot of time to...
No comments:
Post a Comment