|
Scripting: Bash Array Tutorial |
 vote
 |
|
An excellent introduction to bash arrays including 15 examples...
$ cat arraymanip.sh #! /bin/bash Unix[0]='Debian' Unix[1]='Red hat' Unix[2]='Ubuntu' Unix[3]='Suse'
echo ${Unix[1]}
$./arraymanip.sh Red hat
| | |
| |
|
|
| read more | score:8122 | -Ray, June 7, 2010 |