[Solved] Renaming many files at once?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
fs0ciety
Level 1
Level 1
Posts: 15
Joined: Tue Mar 26, 2019 1:46 am

[Solved] Renaming many files at once?

Post by fs0ciety » Sat Mar 30, 2019 12:53 pm

So I have a folder of TV episodes that I want to rename.

Right now the format of the names is: [Uploader_Name] TV Show 01, same thing for every episode with just a different number at the end.

I want the format to be: TV Show - 01 - Episode name

Is that possible? Or is it possible to do at least the part up until the dash after the number?
Last edited by fs0ciety on Sat Mar 30, 2019 6:22 pm, edited 1 time in total.

User avatar
Moem
Level 19
Level 19
Posts: 9737
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: Renaming many files at once?

Post by Moem » Sat Mar 30, 2019 12:56 pm

GPRename can do that.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!

User avatar
phd21
Level 19
Level 19
Posts: 9516
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Renaming many files at once?

Post by phd21 » Sat Mar 30, 2019 1:03 pm

HI fs0ciety,

Welcome to the wonderful world of Linux Mint and its excellent forum!

It would help to know more about your system setup. If you run "inxi -Fxzd" from the console terminal prompt, highlight the results, copy and paste them back here, that should provide enough information.

It sure is possible to do this and there are three really great applications made specifically for doing this:

These and other applications require a Java runtime to be installed. Linux Mint 19 comes with Java 11 installed which a lot of Java applications do work with yet. So I recommend installing Java 8 runtime and making it the default.

To install Java8 runtime (& some other stuff), open a console terminal, type in, or copy & paste, each line below one by one: Click "Select All" above command, right click the highlighted command, select Copy (or Ctrl+Insert), click in the console terminal window, and right click paste ("Shift+Insert" or "Ctrl+Shift+v"), repeat for each command.

Code: Select all

sudo apt-get install mediainfo mediainfo-gui openjdk-8-jre openjfx wget ffmpeg x264 x265
Make Java 8 the default using the command below

Code: Select all

sudo update-alternatives --config java
Free - Tweaking4All.com - Rename My TV Series 2
First, search for the show on the left side and select episodes, add your matching folder or files, click rename. Change preferences to what you want before renaming.
https://www.tweaking4all.com/home-theat ... series-v2/

Free - TV Renamer by tvrenamer (easy to use)
- click File in toolbar -> Preferences -> Renaming tab, change to what you want, save. See changes if ok, click rename.
http://tvrenamer.org/

Paid for but great used to be free
FileBot - The ultimate TV and Movie Renamer
https://www.filebot.net/


Hope this helps ...
.
TVRenamer - renaming preferences example
TVRenamer - renaming preferences example
.
Rename My TV Series - renaming preferences example
Rename My TV Series - renaming preferences example
Last edited by phd21 on Sat Mar 30, 2019 2:49 pm, edited 5 times in total.
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

fs0ciety
Level 1
Level 1
Posts: 15
Joined: Tue Mar 26, 2019 1:46 am

Re: Renaming many files at once?

Post by fs0ciety » Sat Mar 30, 2019 1:28 pm

System:
Host: myname-870-225nd Kernel: 4.15.0-46-generic x86_64 bits: 64
compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.10
Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic
Machine:
Type: Desktop Mobo: HP model: 82F1 v: 1.01 serial: <filter> UEFI: AMI
v: F.04 date: 12/19/2016
CPU:
Topology: Quad Core model: Intel Core i5-7400 bits: 64 type: MCP
arch: Kaby Lake rev: 9 L2 cache: 6144 KiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 24000
Speed: 900 MHz min/max: 800/3500 MHz Core speeds (MHz): 1: 899 2: 898
3: 900 4: 900
Graphics:
Device-1: NVIDIA GP107 [GeForce GTX 1050] vendor: Hewlett-Packard
driver: nvidia v: 390.116 bus ID: 01:00.0
Display: x11 server: X.Org 1.19.6 driver: nvidia
unloaded: fbdev,modesetting,nouveau,vesa resolution: 1920x1080~60Hz
OpenGL: renderer: GeForce GTX 1050/PCIe/SSE2 v: 4.6.0 NVIDIA 390.116
direct render: Yes
Audio:
Device-1: Intel 100 Series/C230 Series Family HD Audio
vendor: Hewlett-Packard Sunrise Point-H driver: snd_hda_intel v: kernel
bus ID: 00:1f.3
Device-2: NVIDIA GP107GL High Definition Audio vendor: Hewlett-Packard
driver: snd_hda_intel v: kernel bus ID: 01:00.1
Sound Server: ALSA v: k4.15.0-46-generic
Network:
Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi
v: kernel port: e000 bus ID: 03:00.0
IF: wlp3s0 state: down mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Hewlett-Packard driver: r8169 v: 2.3LK-NAPI port: d000
bus ID: 04:00.0
IF: enp4s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Device-3: Microsoft Xbox 360 Wireless Adapter type: USB driver: xpad
bus ID: 1-10:6
Drives:
Local Storage: total: 3.87 TiB used: 1.12 TiB (29.0%)
ID-1: /dev/sda vendor: Samsung model: MZ7LN256HMJP-000H1 size: 238.47 GiB
temp: 26 C
ID-2: /dev/sdb vendor: Seagate model: ST4000DM004-2CV104 size: 3.64 TiB
Optical-1: /dev/sr0 vendor: hp HLDS model: DVDRW GUD1N rev: LD02
dev-links: cdrom,cdrw,dvd,dvdrw
Features: speed: 24 multisession: yes audio: yes dvd: yes
rw: cd-r,cd-rw,dvd-r,dvd-ram state: running
Partition:
ID-1: / size: 233.24 GiB used: 45.30 GiB (19.4%) fs: ext4 dev: /dev/sda2
Sensors:
System Temperatures: cpu: 42.0 C mobo: 27.8 C gpu: nvidia temp: 32 C
Fan Speeds (RPM): N/A gpu: nvidia fan: 28%
Info:
Processes: 220 Uptime: 1d 53m Memory: 7.73 GiB used: 3.26 GiB (42.1%)
Init: systemd runlevel: 5 Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19
inxi: 3.0.27

User avatar
phd21
Level 19
Level 19
Posts: 9516
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Renaming many files at once?

Post by phd21 » Sat Mar 30, 2019 2:19 pm

Hi fs0ciety,

I updated my last reply.

Ok, you are using Linux Mint Cinnamon v19.1 (64-bit).

I do not see anything wrong with the results of the "inxi -Fxzd" console terminal command, so that is a good thing.
Last edited by phd21 on Sat Mar 30, 2019 2:50 pm, edited 1 time in total.
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
smurphos
Level 13
Level 13
Posts: 4810
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher
Contact:

Re: Renaming many files at once?

Post by smurphos » Sat Mar 30, 2019 2:42 pm

Go with gprename as suggested by moem

Code: Select all

apt install gprename

It's a generalist GUI app for pattern based bulk renaming.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.

User avatar
vansloneker
Level 5
Level 5
Posts: 549
Joined: Sat Mar 17, 2018 6:10 am

Re: Renaming many files at once?

Post by vansloneker » Sat Mar 30, 2019 5:42 pm

My 18.3 has "Bulk Rename" build in that will take you a long way.

For the complicated jobs I use "Bulk Rename Utility", a Windows program that runs good in Wine.
Unless stated otherwise Mint 18.3-64 XFCE

User avatar
phd21
Level 19
Level 19
Posts: 9516
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Renaming many files at once?

Post by phd21 » Sat Mar 30, 2019 5:57 pm

Hi fs0ciety,

For renaming TV shows and the like, using an application that was made for it like the ones I mentioned work great.

And, for renaming files in general, the suggestions by others also work great. I would add my two favorite renaming applications "Krename" and "Gwenrename" to the list.

[SOLVED] bulk rename with nemo - Linux Mint Forums
viewtopic.php?f=90&t=279848&hilit=krename

Renaming/numbering files in date modified order - Linux Mint Forums
viewtopic.php?f=18&t=289807&hilit=krename

Hope this helps ...
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

fs0ciety
Level 1
Level 1
Posts: 15
Joined: Tue Mar 26, 2019 1:46 am

Re: Renaming many files at once?

Post by fs0ciety » Sat Mar 30, 2019 6:22 pm

Thanks for the help guys

User avatar
phd21
Level 19
Level 19
Posts: 9516
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Renaming many files at once?

Post by phd21 » Sat Mar 30, 2019 7:37 pm

Hi fs0ciety,

You are welcome from all of us that replied...

FYI: You can easily create desktop shortcut launcher to Java files (tvrenamer.jar) by right-clicking the desktop select create new launcher browse to the application folder and the Java jar file, then add "java -jar " to the front of that.

Code: Select all

java -jar /TVRenamer-0.8/tvrenamer.jar
Phd21: Mint 19.2 Cinnamon & xKDE (Xfce) & KDE Neon 64-bit Awesome OS's, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram, 256gb SDD, only Intel 4 Graphics. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

Post Reply

Return to “Newbie Questions”