View Single Post
Old 03-20-2006, 02:25 PM  
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
linux shell gurus, need a command

I have directories:
- one/
- two/
- three/

each directory has images; aaa.jpg, aab.jpg, aac.jpg, etc..

i need to rename them so that I end up with:
one/one-aaa.jpg, one/one-aab.jpg, ...
two/two-aaa.jpg, two/two-aab.jpg, ...
three/three-aaa.jpg, three/three-aab.jpg, ...
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote