Wybo Dekker wrote: > klasse=5 > som[$klasse]=0 > echo ${som[$klasse]} > for i in 1 2 3 4; do > som[$klasse]=$((som[$klasse]+i)) > echo ${som[$klasse]} > done PS. http://www.network-theory.co.uk/docs/bashref/bashref_64.html -- Wybo