View Single Post
Old 01-31-2012, 11:56 AM  
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Check out "man rename". An example

rename 'foo' 'bar' dir*

dir_foo1/ becomes dir_bar1/
dir_foo2/ becomes dir_bar2/

Quote:
Originally Posted by Just Alex View Post
Lets say I have them 001, 002, 003 .. etc.. How can I rename them ... 1-001, 1-002, 1-003
For that specifically:
rename "" "1-" 0*

Last edited by raymor; 01-31-2012 at 12:00 PM..
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote