Bulk rename routines
From VistApedia
To bulk rename routines, easiest to use the rename
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 sed
like this:
$ sed -i 's/KBAIEHX/EHXPRE/g' r/EHXPRE*.m