Most of the small tools I make for myself are written in Lua. The
program attached is exactly 1000 bytes in size. When I start collecting
files in a directory, using a numeric suffix, say emails such as fred1,
fred2, ... or pictures or whatever, I sometimes wish that I had started
with some leading zeros: fred01, fred02, ... or even fred001, fred002,
... for the really enthusiastic correspondent. To use the tool put it in
the directory and run it. It pads out the numeric suffixes with leading
zeros to the width you are prompted for. You need Lua 5.4.3 in your
Run$path, as supplied in the latest RiscLua distribution.

-- Gavin Wraith