Bash Arrays 1: Intro, Declaration, Assignments, Dereferncing (accessing elements) and special subscripts

During my attempts at making a recursive shell script that ouputs a graphical tree display of a directory structure I ran into some trouble with arrays, so I decided to delve deeper into arrays to better understand them. Setup Let’s make a shell script. In your favourite editor type #!/bin/bash Save it somewhere as arrays.sh.…