mv script

hi,

i need help with write shell script. I have on disk some file with name: file01.jpg, file02.jpg, file03.jpg...file99.jpg. In disk have directory with name 01, 02, 03...99. I need script with mv funcionality to moving file01.jpg to directory 01, file02.jpg to directory 02... t is beyond me...thanks any help

[324 byte] By [robert.anderko@gmail.com] at [2007-11-26 11:21:26]
# 1
Assuming the files and directories are in the same directory, and that everything matches up exactly, and that nothing else is in that directory....for i in ? ; do mv file$i.jpg $i ; done-- Darren
Darren_Dunham at 2007-7-7 3:36:50 > top of Java-index,General,Sys Admin Best Practices...