.... Your mv commands are trying to use non-existant variables such as: "$XXXX.XXXX.XXX". What you need is "${XXXX}/XXXX.XXX". The brackets allow substitution of your variable with the rest of the path name appended. M. S. Simpkins