The execution gets stuck after first echo (which displays the string to be matched from the out file).
When the find command is executed on shell, it indeed returns the results (matching files) but...
Ok, so there is a confusion I believe. What I meant is:- The pattern from the out file (searchstring.out) is displayed on console but the output from the find command (files found) is not...