Skip Navigation

Nautilus Bulk Renaming - Is it Possible to Delete Everything After the Underscore?

I recently purchased, ripped, and almost finished transcoding the entire series of Friends. I’m currently in the process of converting subtitles with Subtitle Edit. I’d like to save myself a bit of work by taking the last 13-14 characters off the ends of the file names.

For example, I’d like to take track13[spa] off of the following filename: 03x10 - The One Where Rachel Quits_track13_[spa].sup

Or is this not possible with Nautilus?

UPDATE: I found a solution. I asked about this on a few different instances and a user by the name of @inctinus supplied an answer which, while it didn't work right away in the way that I wanted, I was able to whittle it down so I could make it work in GPRename. Normally, I would have gone straight for the CLI, but I really wanted a GUI for this so I could have a preview. Their solution was (sans quotes) "rename 's/track\d*[spa]//' ", which I pared down to "_track\d_[spa] *" so it would work in GPRename.

3
3 comments