This looks much cleaner now. But when I try this, the search string is read from the output file correctly but seems the output from find is not piped to the second while loop. So, neither...
I am using below snippet to search for a string (read from a file 'searchstring.out') in all locations (/) and then iterate over the files found to write the locations and the respective...