x=$(find . -name \"*.txt\") echo $x
if I run the above piece of code in Bash shell, what I get is a string containing several file names separated
based on other answers and comment of @phk, using fd #3: (which still allows to use stdin inside the loop)
while IFS= read -r f <&3; do echo "$f" done 3< <(find . -iname "*filename*")