How do I program in shell script for write a word if it finds another word
I have a file named medpre.msg.log
Script should search for a word 'degenerated'
If it finds the word 'degenerated' , then it should write 'ECHT' on already existing file Mcheck.prot
How should I write the program, please help me . I am new to shell scripting
Thank you in advance......