Bash arrays

Bash arrays are a lot like Bash Associative Arrays, but with numbers as keys.

Here's a quick reference.

Bash Associative Arrays

Basics

Creating, adding

Keys/Indices

Length

Looping

Clearing

Deleting

Cool stuff

Scope

Bash manual: Arrays

Bash Array Tutorial

Bash Hackers Wiki

Linux Journal

Superuser: Test if element is in array in Bash

Originally posted at 2013-09-18 12:45:21+00:00. Automatically generated from the original post : apologies for the errors introduced.

original post