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