The following is a simple Bash command line:
grep -li \'regex\' \"filename with spaces\" \"filename\"
No problems. Also the following works
This works:
while read file; do grep -li dtw "$file"; done < listOfFiles.txt