Spyke
gnomeunofficial·The (unofficial) GNOME Community on LemmybyMrGeekman

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.

View original on lemmy.world

I wish I could help, as I actually need a way to do this if possible as well.

I assume though that this may be more of a job for the terminal than for nautilus, though I don't know how to do that either. Probably a for loop, which I am still working on understanding how to construct my own unfortunately, I'm still kind of new to all that.

2
lemmy.world

I don't think nautilus have that feature but here I've created you this. Maybe it will work. rename -a _track13_\[spa\] '' *_track13_[spa].sup

1

You reached the end

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