linux change file extension for loop code example Example: bash change file extension rename "s/oldExtension/newExtension/" *.txt