Bash Loop foreach finden

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