Just a quick bite:
find and pre-/append for formatting datafiles to use in create controlfile script:
find /m*/oradata/${SID} -type f | sed "s/^/'/;s/$/'/"
Result:
'/m001/oradata/database01/database01pdtdc00101.dbf' '/m001/oradata/database01/database01posdl01.dbf' '/m001/oradata/database01/database01posdm03.dbf' '/m001/oradata/database01/database01sysaux01.dbf' '/m002/oradata/database01/database01pserrc00201.dbf' '/m002/oradata/database01/database01phvcf00101.dbf'