Hello I got lots of media files and would like to be able to easily rename them. I use midnight commander but it takes too long to specify current directory as it defaults to moving the file while renaming.
So I decided to try to create a bash script that could do this. I am hoping to achieve this
filename1.avi
renamescript filename1.avi newfilename1 (i would get first filename by doing alt+enter in midnight commander so script would have to support like / spacing etc.
I would like it to preserve the file extension without having to retype it.
I have been trying but am very new to bash scripting so I am too embarassed to put what I have here. i know i could just do mv filename1.avi filename2.avi but i am just wanting to make this quicker and prevent errors.
Thank you for any input on this hope it's in the right section.
So I decided to try to create a bash script that could do this. I am hoping to achieve this
filename1.avi
renamescript filename1.avi newfilename1 (i would get first filename by doing alt+enter in midnight commander so script would have to support like / spacing etc.
I would like it to preserve the file extension without having to retype it.
I have been trying but am very new to bash scripting so I am too embarassed to put what I have here. i know i could just do mv filename1.avi filename2.avi but i am just wanting to make this quicker and prevent errors.
Thank you for any input on this hope it's in the right section.
Comment