removing a word in a multiple file starting at the dot extension

hi

I would like to ask if someone knows a command or a script on how to rename a multiple file in the directory starting at the end of the filename or at the .extension( i would like to remove the last 11 character before the extension) for example

Below is the result of my command ls inside the directory

The filename has no predefined length or has diff length so starting at the beggining of the filename is not much use.

Im using pyrenamer but the delete option will start counting character at the beggining of the filename and there has no option that will start deleting at the end of after the extension.

Thanks for any input..

sed 's/.\{12\}\(\..*\)/\1/' Inp_File

Assuming you have BASH or a recent KSH:

find ./ -iname 'BBC_*.mp4' | while IFS="." read NAME EXT
do
        echo mv "$NAME.$EXT" "${NAME:0:$((${#NAME}-11))}.$EXT"
done

Remove the 'echo' once you're sure it does what you want.

Thanks very much for a helpful response

By the way i solve my problem by using this single command below

You didn't say what system you had, so everyone worked under the assumption you didn't have that.

@Corona688: Im sorry i didn't state what system im working with its ubuntu. Im sorry by the way i tried your script and i would like to ask about the NAME is it a variable that i need to assigned. Cause when i used it throws me this error