this post was submitted on 25 Jun 2023
2 points (100.0% liked)

The (unofficial) GNOME Community on Lemmy

50 readers
5 users here now

The GNOME Project is a free and open source desktop and computing platform for open platforms like Linux that strives to be an easy and elegant way to use your computer. GNOME software is developed openly and ethically by both individual contributors and corporate partners, and is distributed under the GNU General Public License.

This Lemmy community is not affiliated with the GNOME project.

Rules:


1. Trolling, flamewars, or poor discussion

We ask all users to follow the GNOME Code of Conduct. Top violations of this rule are trolling, starting a flamewar, "shitposting", or not "remembering the human" aka being hostile or incredibly impolite.

2. No memes, image macros, or rage comics

Meme posts are not allowed. Feel free to post over at !linuxhumor instead.

3. Relevance to GNOME community

Posts should follow what the community likes: GNOME, GNOME development, GNOME applications, the GNOME foundation, GTK+, Flatpak or Flathub, and more. Take some time to get the feel of the community if you're not sure!

4. Post and dash

Posting content is welcome (duh), but we do ask that you contribute more than just your content to the subreddit. We as well require you stick around and interact with the comments of your submission. If you post something and abandon it, it may be treated as spam.

5. No misdirected links, paywalls, or URL shorteners

In short: if your link doesn't go right to the content it will be removed. Sites that require a login to view the content are not allowed. Example: A private Facebook post or a news organization that doesn't have free article views. URL shorteners and links that misdirect users to ads/jokes are also banned.

6. NSFW

No NSFW links or content.

7. No rage posts

We do not shy away from criticism, in fact, we encourage it! However, criticisms of GNOME must be accompanied with valid, well reasoned arguments. Posts that contain no original content and are meant to just spread hatred and anger will not be tolerated.

8. Spam

For obvious reasons, spam is not tolerated. Spam content will be removed, and spam accounts will be banned. This also applies to bot accounts.

The above description and rules were adapted from The GNOME Community on Reddit.

founded 1 year ago
MODERATORS
 

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.

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago

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.

[–] Agility0971 1 points 1 year ago (1 children)

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

[–] MrGeekman 1 points 1 year ago