How to use traps and error-handling options in Bash


Read on How-To Geek