What are the three main forms of enabling debugging in a
shell script?
Answers were Sorted based on User's Feedback
Answer / neha c
set -vx
v:- verbose option(this option outputs every line of the
script onto the standard output console)
x:- this option substitutes every variable's value which is
used in the shell script.
To turn off the debugging option, use set +vx.
Is This Answer Correct ? | 2 Yes | 0 No |
How to initialize a directory size to a variable??
Why is it called a shell?
How are shells born?
What is the need of including script interpreter in your shell script?
Explain about return code?
Is shell scripting a programming language?
How will you list only the empty lines in a file (using grep)?
Explore about environment variables?
How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?
Why is a script important?
What is sh in shell script?
What is the use of "$?" Sign in shell script?