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 \'
Here is a better way to loop over files as it handles spaces and newlines in file names:
#!/bin/bash find . -type f -iname "*.txt" -print0 | while IFS= read -r -d $'\0' line; do echo "$line" ls -l "$line" done