What are the three main forms of enabling debugging in a
shell script?
Answer Posted / 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 |
Post New Answer View All Answers
How to get the 3rd element/column from each line from a file?
What is in a script?
How will you connect to a database server from linux?
Where is bash history?
how to get part of string variable with echo command only?
How do I stop script errors?
How can we find the process name from its process id?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
Tell something about the super block in shell scripting?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is the command to find out users on the system?
What is the meaning of $1 in shell script?
Why is a script important?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What is a shell script in windows?