Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

how to rename files?

Featured Replies

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

 

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

  • Author

thanks I'll try it. But it will also rename my existing ".en.srt" files to ".en.en.srt" too right?

  • 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 {} \;

  • 5 years later...

Is there a docker or plugin witch can change the filename? I got many files I want to rename... 

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.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.