how to rename all files in folder to another extension in linux code example Example: bash change file extension rename "s/oldExtension/newExtension/" *.txt