Tag Archives: bash

Bash: Multi-dimensional Arrays

shell script
Learn how to simulate a multi-dimensional array in bash using an associate array with clever use of the hash key. Bash 4 only provides one-dimensional indexed and associative array variables.

Bash: Escape String Variable

unix linux

Objective: Escape or append a ‘\’ to reserved characters (e.g &, \, |, ?, *, etc) found on a string variable in bash.