CyberMew Posted February 20, 2016 Share Posted February 20, 2016 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 Quote Link to comment
mr-hexen Posted February 20, 2016 Share Posted February 20, 2016 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 Quote Link to comment
CyberMew Posted February 21, 2016 Author Share Posted February 21, 2016 thanks I'll try it. But it will also rename my existing ".en.srt" files to ".en.en.srt" too right? Quote Link to comment
Squid Posted February 21, 2016 Share Posted February 21, 2016 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 Quote Link to comment
CyberMew Posted February 21, 2016 Author Share Posted February 21, 2016 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 {} \; Quote Link to comment
krosbym Posted January 13, 2022 Share Posted January 13, 2022 Is there a docker or plugin witch can change the filename? I got many files I want to rename... Quote Link to comment
Squid Posted January 13, 2022 Share Posted January 13, 2022 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. 1 Quote Link to comment
Recommended Posts
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.