Q:

Batch file rename based on pattern in bash

So I have a bunch of files named like this:
Movie Name Here [720p].mp4

And I want to rename them like this:
Movie Name.mp4

I have tried stuff like:
mv ./*\ [720p].mp4 ./*.mp4

But it doesn't work, for whatever reason. Any ideas on the quickest way to do this?

A:

Use this code to remove all ' [720p]':
rename 's/ \[720p\]//g' ./*

