<div dir="ltr">I can't live without 'rename', which is available for Ubuntu, but I don't think the Red Hat/Fedora program of the same name is the same thing.<br><br><div>The Ubuntu version is easy enough to install: "sudo apt install rename"</div><div><br></div><div>The syntax is <br></div><div><br></div><div>rename -v 's/regex/newnames/' *</div><div><br></div><div>Or some such variation. With regex it's actually very flexible. So in the case of your files, you'd do:</div><div><br></div><div>rename -v 's/\ -\ s01e/\ -\ s02e/' *</div><div><br></div><div>(assuming you wanted to change the s01 to s02)</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 28, 2022 at 7:54 PM Charles M <<a href="mailto:chaslinux@gmail.com">chaslinux@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I have a bunch of videos I've ripped from my media and I'd like to<br>
automate renaming of them. Xubuntu has a bulk renaming tool that will<br>
let me rename the first part of the file. I'm wondering if there's a<br>
simple regex that would work for renaming the second part (episodes).<br>
<br>
For example: I have a show that's the second season:<br>
<br>
showname - s01e01<br>
showname - s01e02<br>
showname - s01e03<br>
<br>
(Where s is season and e is episode)<br>
<br>
Does anyone use Xubuntu's bulk renaming tool to do something similar?<br>
<br>
Thanks,<br>
<br>
Charles<br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</blockquote></div>