Folder renaming ( sed perhaps )

Does anyone have a script to hand that will hack off the first 3 characters of a directories name
I have a few hundred directories that need changing from 01-directoryname to just directoryname for example
All the directories start with 2 numbers and a hypen if makes it easier.

Ta

M

The renaming kernel of a bash script could be:

mv ${DIRNAME} ${DIRNAME#*-}

This does not hack off the first three characters, but all characters up to and inclusing the - (which also fits your description).
Exeacty hacking off the first three chars:

mv ${DIRNAME} ${DIRNAME#???}

Many thanks - Just stuck this around

for DIRNAME in ;do
mv ${DIRNAME} ${DIRNAME#
-}
done

and it works perfectly

Ta

M

Glad it works. And indeed, when they are all in the same place, that makes it easy.