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