February 20, 201610 yr I searched online, and i type this: rename -v .srt .en.srt **/*.srt I was trying to rename .srt to .en.srt, but now i realise that the folders below is not affected /shows/showA/filenameE01.srt /shows/showA/somefolder/filenameE02.srt /shows/showB etc lots of folders after execution the above rename command at "shows" level, it becomes becomes: /shows/showA/filenameE01.en.srt /shows/showA/somefolder/filenameE02.srt (this remains unaffected) /shows/showB etc lots of folders any idea how I can fix this? i cannot use the same command again because the current .en.srt files will become .en.en.srt
February 20, 201610 yr You want a recursive operation to happen on the 'shows' folder. Usually it is "R". Try typing: rename -? For a list of commands. My guess you will be modifying the command to: rename -vR .srt .en.srt **/*.srt
February 21, 201610 yr Author thanks I'll try it. But it will also rename my existing ".en.srt" files to ".en.en.srt" too right?
February 21, 201610 yr After the fact, but I think the greatest utility to bulk rename files and apply various filters, auto numbering, etc is http://www.bulkrenameutility.co.uk/Main_Intro.php
February 21, 201610 yr Author That seems good, but do they have a version that unraid can run on? My network is slow so I have to access the files directly on the server, and it's much faster too.. Besides I have some smb permissions that doesn't allow some of my folders to be directly accessible outside edit: the -R didn't work, I ended up doing this instead find . -type f -name "*.srt" -exec rename .srt .en.srt {} \;
January 13, 20224 yr Is there a docker or plugin witch can change the filename? I got many files I want to rename...
January 13, 20224 yr Soon(tm) - Or just do it over the network (my choice) - Or Krusader app may do what you want or mc at the command prompt, or the bulk file renamer as linked above) over the network is simply awesome for doing this type of thing.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.