[Techtalk] Looping with numbers in filenames

Eeva Järvinen ejarvinen at gmail.com
Wed Feb 16 10:14:27 UTC 2011


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


More information about the Techtalk mailing list