Hi,
How can we get the return value of any unix command. For ex. The wc command gives return value of 0 if its successful else it gives > 0 for error occurred.
Can I assign this return value to shell variable ? or can I use this return value directly in “if [ condition ] “
Thanks for the help.
VK
How can we get the return value of any unix command. For ex. The wc command gives return value of 0 if its successful else it gives > 0 for error occurred.
Can I assign this return value to shell variable ? or can I use this return value directly in “if [ condition ] “
Thanks for the help.
VK