2) Syntax (arrays)
- https://opensource.com/article/18/5/you-dont-know-bash-intro-bash-arrays
- basic array syntax
- https://linuxhint.com/use-ifs-in-bash/
- very handy to remember this or keep in this tip close at hand. Dealing with arrays in loops. The site where I learnt this trick:
1for i in *
2do
3 read -a myArray <<< "$i"
4 echo ${myArray[1]}
5done
- http://www.masteringunixshell.net/qa35/bash-how-to-print-array.html
- how to print bash array