Redirecting debug info to another file
Is it possible in shell scripts to redirect only the debug info to another file?
i.e. If I run the script as sh -v or sh -x or if I selectively turn it on inside a script, by set -x, -v the o/p shld automatically go to another file. The basic output should still come on to the screen (all the echo's).