I have several folders of video files that need to be renamed to something uniform, eg:
foldername.videotypexvideonumber.avi. I have looked at creating a shell script to make this easier. The
mv command seems to be the best way to do this.
However, every guide/tutorial/manpage I've seen says that when I rename a file I have to also include the file extension. This would normally be fine, but some folders have videos of multiple file types, eg .mkv and .avi and even some .rmvb files.
So, what I need to know is if there's a way to rename files through the terminal without having to specify the file type when doing so - basically so that the extension stays the same, regardless of what it is before renaming.