Bash loop foreach encontrar

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