Have you ever been confused by the different ways to use Bash arrays? Or perhaps you're just learning Bash, and they're next on your list? Bash arrays can act strangely depending on how you use them.
I've set up my .bash_profile to colour code the hostname in the command prompt differently depending on which machine I'm on. I have a separate file for specifying the host colours, which is sourced ...
Command interpreters and scripting languages like the Bash shell are essential tools of any operating system. Here’s how to use powerful data structures in Bash called associative arrays or hashes.