Batch rename

Ask for help and post your question on how to use XnView MP.

Moderators: XnTriq, xnview

ra-dio
Posts: 6
Joined: Sun Apr 12, 2020 3:51 pm

Batch rename

Post by ra-dio »

Hi,

I have file names like this:

IMG_2021-08-15 15.41.54.jpg

and I would like to batch convert them to:

IMG_20210815_154154.jpg

How can I do this?
Ghost_Rider
Posts: 8
Joined: Sun Aug 29, 2021 9:27 pm

Re: Batch rename

Post by Ghost_Rider »

Are you running windows? Linux? or Mac?

With linux it is dead simple to do that with a shell script from a terminal window. Windows 10 has the shell that can be used for the nearly the same. Mac I don't have experience with.
ra-dio
Posts: 6
Joined: Sun Apr 12, 2020 3:51 pm

Re: Batch rename

Post by ra-dio »

Hi,
I run Linux. I thought i can do this via find and replace using batch rename ... What is your method?
User avatar
xnview
Author of XnView
Posts: 36805
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Batch rename

Post by xnview »

you can perhaps do it in 2 steps with replace in batch rename
Pierre.
ra-dio
Posts: 6
Joined: Sun Apr 12, 2020 3:51 pm

Re: Batch rename

Post by ra-dio »

Ok, but how? What is the pattern? I was looking for list of regular expressions and have not found. How would you do this?
What should I insert in Find
and
what should I insert in Replace?