📦 Bash Arrays

Bash arrays can hold multiple values and are indexed starting at zero. Here’s how to declare and access them.

📖 Example Array

▶️ Try It Yourself

Output will appear here...
💡 Tip: Use ${my_array[@]} to get all array items, and ${#my_array[@]} for the array length.