bash loop over files recursivley with specific extension code example
Example: bash loop over files with extension
for i in *.java; do
[ -f "$i" ] || break
...
done
for i in *.java; do
[ -f "$i" ] || break
...
done