Professional Documents
Culture Documents
ARRAYS + FOR
LOOPS
VARIABLES ARRAYS
can store
VS
can only store
multiple
one piece of
different
data at a time
values at the
same time.
Example:
numbers=(1 2 3 4)
Example:
Example:
readarray -t files < <(ls ~/Documents)
Example Script:
#!/bin/bash
Example Script:
#!/bin/bash