The following command attempts to enumerate all *.txt files in the current directory and process them one by one:
*.txt
for line in \"find . -iname \'
Use command substitution instead of quotes to execute find instead of passing the command as a string:
for line in $(find . -iname '*.txt'); do echo $line ls -l $line; done