Trying to code a shell script for a program testing. i need to check for the existence of particular word in outfile and then proceed further, which i am not able to do. I have wrote the following code. Please tell the corrections.. The control does not pass to the pass condition...
./a.out < file2.txt > outfile
if read outfile = "enter the word to be matched word found"]