bash scripting example
Use like this:
./rename.sh data/actives.mol2 data/decoys.mol2 data/active_decoys.mol2