Bulk rename routines

To bulk rename routines, easiest to use the  command. Use the -n flag to rename so that it won't do anything before you commit to renaming.

$ rename -n s/KBAIEHX/EHXPRE/ r/KBAIEHX*.m $ rename -v s/KBAIEHX/EHXPRE/ r/KBAIEHX*.m

To rename the variables inside of the routines, you can use  like this:

$ sed -i 's/KBAIEHX/EHXPRE/g' r/EHXPRE*.m