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