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