From the course: Troubleshooting and Debugging Bash

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Colored text

Colored text - Bash Tutorial

From the course: Troubleshooting and Debugging Bash

Start my 1-month free trial

Colored text

- [Instructor] Black and white text is the standard, but can get hard to look at over time. Additionally, there are huge benefits available to us when a text editor can guide us with the use of color. Color coding different types of text within your script allows you to know by color whether or not you're properly formatting your code. You don't have to use a professional programming tool like Xcode on Mac OS to write BASH scripts. But if you do choose to use a professional level tool like that, or many of the others I've mentioned, you will get great features like color coding within your scripts. Color coding is a fantastic troubleshooting tool, because you can easily keep track of what is going on in your code. This simple visual cue can help you to quickly identify places in your code where you've made a mistake that would cause your script to behave unexpectedly. Here in Adam, you can see that different types of…

Contents