I've downloaded dozen of files from youtube using youtube-dl. Nice feature, btw.
After I searched through them all, I've realized that there are lots of ending with random numbers and letters of different case. Like video_name_number_of_video_-_the_name_of_episode_part_number-12BUInjas32d1.avi.
$ rename -n 's/-.*avi/.avi/i' *.avi – picks up the first - and
leaves me with video_name_number_of_video_.avi name.
Is there any options to delete this mix of letters and numbers? I would appreciate any helps. And moreover there are only 13 digits in it.
Added: Someone asked me what exactly do I want. So obviously I want to delete those 13 digits from names of files and live happily the rest of my life. Made the actual question that leads to my aim bold.
renamecommand. But I can say between what we should rename. And another "but",renamepicks the first-in name, not the second-. – Alexander May 17 '13 at 07:16