Since no-one has yet came up with this, here goes: for (( foo=1; foo<20; ++foo )); do echo $filename$foo; done; will work nicely, too. (Just how many ways are there to do this? Dozens?) Eeva