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?

  • Ictinus@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    1 year ago

    Assuming all but the number is the same in all file names, try this in a folder with a test file first…

    rename 's/_track\d*_\[spa\]//' *

    • MrGeekman@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      Thank you! I noodled around with that in a GUI program called GPRename and found a workable solution I just had to modify yours a bit to make it work there. Here’s the finished solution, at least when using a graphical program like GPRename: _track\d*_\[eng\] *