---

How to Catch and Handle Errors in bash

Writing a robust, bug-free bash script is always challenging even for a seasoned system administrator. While you cannot prevent all errors in your bash script, at least you should try to handle potential error conditions in a more predictable and controlled fashion. This tutorial introduces basic tips to catch and handle errors in bash.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis