Rename tool can batch rename files on command line

TIL: rename (install with brew) can batch rename files with regular expressions, for example to remove dimensions present in filenames (IMG3291-400x300.jpg)

rename --dry-run 's/-[1-9][0-9]{0,3}x[1-9][0-9]{0,3}\@2x//' *.jpg

Run without --dry-run if everything looks good.