This didn't work because the for loop works off a list.
(For each file in a directory do this...for each word in a line, do this)
You should check the man page and try using a while loop or change the condition for the FOR loop to look at the files instead of the number of files. I don't know which you need without further info.
That will get pretty slow if you start working with large numbers...
If you're going to use ksh, why bother calling calc?
until [[ $something -eq 10 ]]; do
print $something
something=$((something+1))
done
OP, it really matter what you're trying to accomplish...
Does each filename need to be sent to another command as an argument?
If so, hoghunter is pointing you right...
for each in availabilityFax* ; do
command $each
done