Is there any way to do general error handling in shell scripts. I know if you use the $? variable it returns the exit code of the last executed command. However, I don't want to have to check this variable after every line of my script. Can I generally trap errors and send them to error handling portion of the shell script. I'm using bash.
Thanks,
Greg
Thanks,
Greg