Is there a way to rename a lot of files on a progressive way?

https://lemmy.ml/post/1250491

Is there a way to rename a lot of files on a progressive way? - Lemmy

I have 291 episodes named tv.show.01.mp4 to tv.show.291.mp4 and i want rename them to be named like Tv Show Episode S01E01.mp4. I use Linux so please suggest only FOSS compatible programs

I use KRename for renaming multiple files.
KRename

A powerful batch file renamer

KDE Applications
I second krename. Works flawlesly for me.
This can be done natively in Thunar if you happen to use XFCE.
I use nomino for this purpose.
GitHub - yaa110/nomino: Batch rename utility for developers

Batch rename utility for developers. Contribute to yaa110/nomino development by creating an account on GitHub.

GitHub
how can you identify season from the file name?
One approach: Look up what TV show has 291 episodes; land on this Wikipedia page which gives you the season lengths.
List of Dragon Ball Z episodes - Wikipedia

good and fun idea ;)

you can try rename: https://www.man7.org/linux/man-pages/man1/rename.1.html

or rename 's/expression/replacement/' filename

select range of episodes per season then add season number (eg S01) in replacement string.

then restart numbering for next set of episodes (eg 01 to 12) and add S02. and so on. more tedious than the gui Rename method but doable.

Do you have the means to write your own Python script? If so, that would be a simple way to solve your problem.
or if you are comfortable with command line and some replacement shenanigans, there is always mmv
GitHub - rrthomas/mmv

Contribute to rrthomas/mmv development by creating an account on GitHub.

GitHub
Would the tvnamer utility help?
I looked into it yesterday, and i don't think is good for me, I actually need the format S01E01 and not its standard like [1x01]
There are various GUI tools (eg., gprename, krename) but I prefer qmv, a CLI tool from the renameutils package. It opens filenames into a vim (or your default editor) session, with which you can use global regex search/replace commands to rename files.
krenamer can do this. It just is a regex front end. You could do it with a shell script too.
KRename

A powerful batch file renamer

KDE Applications
That’s what i started using :)