bulk rename with nemo

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
samiel60
Level 3
Level 3
Posts: 129
Joined: Thu Apr 13, 2017 1:03 pm

bulk rename with nemo

Post by samiel60 » Thu Oct 18, 2018 3:18 pm

I'm on a LM 19 with defalut Nemo 3.8.6
I've a lot of *.TTF files, and I'd like to change in *.ttf the extension.
I found this guide:
https://community.linuxmint.com/tutorial/view/1935
but if press F2 after selecting files, nothing happens.
Is bulk renaming now present in nemo,
or have I to add or to do anything else?

thanx
s

gm10
Level 13
Level 13
Posts: 4569
Joined: Thu Jun 21, 2018 5:11 pm

Re: bulk rename with nemo

Post by gm10 » Thu Oct 18, 2018 4:00 pm

That guide is outdated, read the comments.

samiel60
Level 3
Level 3
Posts: 129
Joined: Thu Apr 13, 2017 1:03 pm

Re: bulk rename with nemo

Post by samiel60 » Thu Oct 18, 2018 5:35 pm

so there is no way to rename with nemo?
is it necessary to appeal to console or install thunar?

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

Re: bulk rename with nemo

Post by Moem » Thu Oct 18, 2018 5:44 pm

The Software Manager offers some decent rename tools. I have installed and used GPRename and found it easy enough to use, and effective.
Image

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

gm10
Level 13
Level 13
Posts: 4569
Joined: Thu Jun 21, 2018 5:11 pm

Re: bulk rename with nemo

Post by gm10 » Thu Oct 18, 2018 5:45 pm

samiel60 wrote:
Thu Oct 18, 2018 5:35 pm
so there is no way to rename with nemo?
is it necessary to appeal to console or install thunar?
That's not what I said. Did you actually read the guide and the comments to it? Both taken together tell you how to do it.

User avatar
MintBean
Level 9
Level 9
Posts: 2968
Joined: Fri Aug 07, 2015 6:54 am
Location: Blighty

Re: bulk rename with nemo

Post by MintBean » Thu Oct 18, 2018 6:38 pm

Install Thunar, then in Nemo on the menu edit > preferences > behaviour > bulk rename, enter

Code: Select all

thunar --bulk-rename
and you can then select multiple files and right click->rename.

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

Re: bulk rename with nemo

Post by phd21 » Thu Oct 18, 2018 7:21 pm

Hi samiel60,

I just read your post and the good replies to it. Here are my thoughts on this as well.

There are some superb renaming applications that can easily be installed and used like Krename, Gwenrename, pyrenamer, gprename, etc...

There are also many file managers available as well.

While researching this, I did come across this:

nemo is unable to rename files · Issue #1853 · linuxmint/nemo
https://github.com/linuxmint/nemo/issues/1853

Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
smurphos
Level 8
Level 8
Posts: 2225
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: bulk rename with nemo

Post by smurphos » Thu Oct 18, 2018 11:36 pm

phd21 wrote:
Thu Oct 18, 2018 7:21 pm
pyrenamer
....is a dead project and not available in the default repos for Mint 19 - still available in 18.3 of course. Its a shame as it was my preferred CLI add-on for bulk rename in nemo and a nice GUI renamer in it's own right.

Currently I us GPrename with a nemo custom action. Highlight multiple files in a folder and right click will give a bulk rename option in nemo's context menu. Running it will open the GPrename GUI in that folder.

Code: Select all

cat ~/.local/share/nemo/actions/bulk-rename.nemo_action
[Nemo Action]
Name=Bulk Rename
Comment=Multiple Rename with GPRename.  The action gets executed for the marked or the higher level directory.
Exec=gprename %F
Selection=m
Extensions=any;
EscapeSpaces=true
Dependencies=gprename;
Image

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

Re: bulk rename with nemo

Post by phd21 » Fri Oct 19, 2018 11:23 am

HI smurphos,

I have not had time yet to boot into Cinnamon 19.x to test the file manager renaming, but that is a good suggestion for people using the Cinnamon file manager "Files" (Nemo) that are having trouble with renaming files. Can you give more detailed instructions on how to do this for the less experienced users?

Here is my attempt at more detailed instructions for doing this.

install gprename

Code: Select all

sudo apt install gprename
Open a console terminal to create a new file manager "Action" text file using the "xed" text editor for renaming files in bulk using "gprename".

Code: Select all

sudo xed ~/.local/share/nemo/actions/bulk-rename.nemo_action
Now click "Select All" in the code box below and copy the highlighted text and paste that into the new text file, save the file, exit the text editor, exit the console terminal, restart the file manager.

Code: Select all

[Nemo Action]
Name=Bulk Rename
Comment=Multiple Rename with GPRename.  The action gets executed for the marked or the higher level directory.
Exec=gprename %F
Selection=m
Extensions=any;
EscapeSpaces=true
Dependencies=gprename;
To use: Highlight multiple files in a folder within the file manager and right click will give a bulk rename option in nemo's context menu. Running it will open the GPrename GUI in that folder.


FYI: "Krename" can easily be installed through the Software Manager or Synaptic Package Manager (SPM) and could easily rename files for this as well as more complex renaming functions.

Hope this helps ...
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

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

Re: bulk rename with nemo

Post by phd21 » Fri Oct 19, 2018 6:41 pm

Hi samiel60,

There have been some new good replies to your post ...

I forgot to mention that most file managers can rename multiple files by filename, but it is very unusual (uncommon) for most file managers to be able to change multiple files extensions like from ".TTF" to ".ttf".

And the suggestion from "smurphos" works well (Thanks), although you have to reselect the files once the "gprename" program comes up (Ctrl+A = select all), recommend changing "gprename" options to "auto preview".

As I stated before, there are other file managers available and there is nothing wrong with having more than one installed. If anyone wants to try the superb Dolphin file manager, then see the post below:

Previous post with instructions for install Dolphin file manager
Can't get an image preview at file manager
viewtopic.php?f=208&t=268018&p=1460132#p1460132


Hope this helps ...
.
LM_Cinn19_FileManager_Bulk_Rename1.jpg
Cinnamon File Manager Nemo
with new bulk rename action options
.
LM_Cinn19_FileManager_Bulk_Rename2.jpg
Cinnamon File Manager Nemo
with new bulk rename action options
.
. click to view animated gif image
Krename1-2-3.gif
Krename - simple as 1,2,3
Phd21: Mint KDE 17.3 & 18.3, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
smurphos
Level 8
Level 8
Posts: 2225
Joined: Fri Sep 05, 2014 12:18 am
Location: Britisher...

Re: bulk rename with nemo

Post by smurphos » Fri Oct 19, 2018 11:01 pm

phd21 wrote:
Fri Oct 19, 2018 11:23 am
Can you give more detailed instructions on how to do this for the less experienced users?

Here is my attempt at more detailed instructions for doing this.
Hi phd21,

Good instructions but i've made a couple of amendments

Removed one optional sudo (Mint's apt will prompt for password without explicitly using sudo) and one unnecessary sudo (the nemo action file is in the users home folder and is user owned). Even if it was a root location in Mint 18.x gksudo xed should be used or in Mint 19 xed admin:///

Just a note that if the user navigates to ~/.local/share/nemo/actions in Nemo and clicks the 'More Info' button in the Info bar it opens a commented template for making a custom nemo action in the default text editor. That's a nice touch from the devs for this particular feature.
phd21 wrote:
Fri Oct 19, 2018 11:23 am
install gprename

Code: Select all

apt install gprename
Open a console terminal to create a new file manager "Action" text file using the "xed" text editor for renaming files in bulk using "gprename".

Code: Select all

xed ~/.local/share/nemo/actions/bulk-rename.nemo_action
Now click "Select All" in the code box below and copy the highlighted text and paste that into the new text file, save the file, exit the text editor, exit the console terminal, restart the file manager.

Code: Select all

[Nemo Action]
Name=Bulk Rename
Comment=Multiple Rename with GPRename.  The action gets executed for the marked or the higher level directory.
Exec=gprename %F
Selection=m
Extensions=any;
EscapeSpaces=true
Dependencies=gprename;
To use: Highlight multiple files in a folder within the file manager and right click will give a bulk rename option in nemo's context menu. Running it will open the GPrename GUI in that folder.

teamspoad
Level 1
Level 1
Posts: 4
Joined: Thu Jan 11, 2018 6:56 am

Re: bulk rename with nemo

Post by teamspoad » Thu Nov 29, 2018 10:01 am

SIMPLE ANSWER:. Install thunar (no need to run it), then enter simple code into nemo preferences, under bulk rename, as follows:

thunar --bulk-rename

This works, with f2 (w/o any code or regestering), on my mint 19 with nemo 3.8.6
It's really quick, easy, works well, has preview, string options, and gui. It JUST works

Steps:

Sudo apt install thunar
Close terminal, no need to open or use thunar
-now open up Nemo and go to preferences
---edit-->preferences -->behavior (top tab)
-------at the bottom, "command to invoke when renaming multiple items", enter:

thunar --bulk-rename

Close preferences and THAT'S IT!
How did everyone make this so difficult?

---------- The END ------

Another similar, fun, and easy thing to do is install scripts in nemo.
Simply make scripts executable and add them to nemos script library. Great collection of them , search web:

Ultimate nemo scripts pack

With them you can try 100s of things from right click in nemo, like picture adjustments, file conversions, compression, server comm, the list is huge and powerful. You can organise your favorites. But you have to make the scripts executable or they wont show up in nemo.

arso96
Level 1
Level 1
Posts: 2
Joined: Thu Nov 29, 2018 7:49 am

Re: bulk rename with nemo

Post by arso96 » Thu Nov 29, 2018 10:30 am

Hello,
I don't understand why nobody commented here to say "Thank You!" :)
Yep, I'm new to linux and been wondering what's that option about. I use FileBot for bulk renaming (awesome app btw) but they are for my multimedia files.
Just wanted to let you know that your explanation and descriptions are so neat. I hope your scripts are as good too, I am going to check and will give my feedback later maybe :) Dafont Mapquest Filehippo
Now heading to your other tutorials even though I'm not particularly in need ;)
Regards
Last edited by arso96 on Fri Nov 30, 2018 10:14 am, edited 1 time in total.

srq2625
Level 4
Level 4
Posts: 394
Joined: Tue Jan 08, 2013 11:35 am
Location: State: Constant Confusion, Country: D'oh

Re: bulk rename with nemo

Post by srq2625 » Thu Nov 29, 2018 12:44 pm

I know you are looking for a GUI solution, but there's a simple terminal solution:
  1. Open a terminal window
  2. Change to the folder hosting the files with a command of the form: cd /path/to/folder
  3. I believe the command would be

    Code: Select all

    rename 's/\.TTF$/.ttf/' *.TTF
  4. Inspect the file names in the file manager of your choice
  5. Close the terminal window

Post Reply

Return to “Newbie Questions”