If you're working with a large amount of data in your Bash scripts, arrays will make your life a lot easier. Some people get intimidated by the syntax. But once learned, it will make your scripts more ...
An associative array is an array which uses strings as indices instead of integers. To see how associative arrays work, we’re going to look at both the Korn shell and Perl, though only the newest ...
If you're used to a "standard" *NIX shell you may not be familiar with bash's array feature. Although not as powerful as similar constructs in the P languages (Perl, Python, and PHP) and others, they ...
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 ...
Creating a sed-based file substitution tool. A few weeks ago, I was digging through my spam folder and found an email message that started out like this: Dear #name# Congratulations on winning the $15 ...