increment a Variable

hi,

i want to increment a Variable but it doesnt work.

here my cod�

COUNT=1
COUNT= 'expr $COUNT + 1'

i've tried it in the prompt but it print me:
expr: syntaxerror

What does I make wrong?

Use

count=1
count=$((count+1))

vino

thank you

now it works

be careful of spaces. You can't have spaces around =

COUNT=`expr $COUNT + 1`

vinos method uses the bash specific syntax
which will run faster as it doesn't need to
start a seperate expr process per increment.

ok pixelbeat
thanks