Bash Loop Forach Find

find . -name "*.txt" -print0 | while read -d $'\0' file
do
    …code using "$file"
done
Tame Tortoise