I assume by "convert" you mean rename.
Here is a for loop to help you get started.
Code:
N=1
for i in *
do
echo $i
echo $i |sed "s/.*\./000$N./"
let N=N+1
read
done
Keep in mind that this will not pad with leading zero's. Nor does it actually rename the files.
And the "read" is just a pause to help you see what it's doing.
Also; this
assumes:
a) That every file in the directory will actually have an extension; and only one extension.
b) That you want the files numbered in the same order that they appear in a directory listing.
--ET