Shell Script Problem
Juergen Raschke
mail at juergen-raschke.de
Thu Jan 21 23:42:06 CET 2010
Hallo,
Ralph Meyer wrote:
> array=`cat targets.conf`
array=( `cat targets.conf` )
Dein $array ist gar kein Array.
> for item in $array[@]
for item in ${array[@]}
> selection=$array[$(cat /tmp/menu)]
selection=${array[$(cat /tmp/menu)]}
auf Arry-Elemente wird mit ${array[$i]}
zugegriffen, die "{}" sind notwendig.
Gutes Tutorial
Advanced Bash-Scripting Guide
http://tldp.org/LDP/abs/html/
Gruss,
Juergen
More information about the Linux
mailing list