View Single Post
Old 09-13-2012, 08:26 AM  
roly
Confirmed User
 
Join Date: Aug 2002
Posts: 1,844
how to bulk change names in directory of centos server?

hi

i've got a folder with 1000+ text files in it, does anyone know what i can type on the command line (maybe a perl command or something?) to change the name slightly e.g.

old file names: file062012.sitename.net.txt file77582.sitename.net.txt etc

new file names: file062012.www.sitename.net.txt file77582.www.sitename.net.txt

thanks in advance
roly is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote