I am new to unix (using the Mac OS X terminal) and am trying to rename certain files by adding some text in the middle of the filename. For all files in the folder ./temp I would like to replace filenames beginning dr_ic0004 with dr_ic0004_DMN.
For example
dr_0004_tstat1.txt and dr_0004_tstat2.txt with
dr_0004_DMN_tstat1.txt and dr_0004_DMN_tstat2.txt
respectively.
 
     
    