bash if statement help needed

Hi I need a script with an if statement that goes.

I need it to search through all files within a directory with the extension .test if it finds the string '71502FSC1206' then do

sed 's/71502FSC1206/\n&/g' > send.test

If it finds the string '715MCH' or '715JAC' then I need it to move the file to another directory.

Thanks in advance

Please post in the homework forum,or establish some commercial context.

Please remember to post what Operating System and version you have and what Shell you use.