|
Thanks for the suggestion Franklin52. I do see the echo showing the full string now, but the results of the grep are off.
If I do the grep manually - I get 3 files returned which is correct.
If I use my script - I get 1588 files returned.
Script now:
OIFS=$IFS
IFS=""
for h in `cat strings.txt`; do echo $h ; grep -rl "$h" /path/to/search/ >> results.txt ; done
IFS=$OIFS
|