Professional Bash scripting: automating Linux administration
Exit

Lesson 5 of 12 · Structuring your scripts

Indexed and associative arrays: lists, counters, grouping and safe commands

45 min Rocky Linux 9

Objective

Use bash's two kinds of arrays for what they do best: keep a list of items intact (file names, servers, arguments) and associate a value with a key (count per role, total per city, look up a server's configuration).

This lesson is part of the full course

Unlock Professional Bash scripting: automating Linux administration to read every lesson, do the exercises, access the simulations and earn your certificate.

Already enrolled? Log in.