Debugging shell scripts. To see where a script produces an error use the command: sh -x script argument. The -x option to the sh command tells it to print ...
unixhelp.ed.ac.uk