LWN.net Logo

Advertisement

E-Commerce & credit card processing - the Open Source way!

Advertise here

KRename: a Batch Renamer

KRename is a batch-mode file renaming utility for the K Desktop Environment (KDE). The primary software developer is Dominik Seichter. The utility is primarily designed for managing large collections of digital photographs and music files, but it is general enough in design to be applicable to a wide variety of uses. [KRename]

Krename offers an easy way to rename hundreds of files in one go, giving you as much freedom as you need. You can use parts of the old filename, information like the current date or even an mp3 tag or the colour depth of an image. Krename integrates into the Konqueror or Krusader filemanager !

Despite its description as a batch utility, KRename is a GUI-based application, not a shell script. The screenshots page shows some of the features of the GUI.

The basic actions of KRename include file renaming, copying, moving and overwriting. KRename can create shortcuts and undo what it changed. Some additional KRename features include:

  • The ability to work on single files, groups of files, and directories.
  • Support for recursive directory scanning.
  • Has two GUI modes: tabbed and wizard-like.
  • Support for multiple language translations.
  • Use of an open plugin architecture for expandability.
  • Has plugins for showing meta-information of images, sounds, languages, and many other file formats.
  • Support for image viewing with numerous formats.
  • Renaming can be performed via filenames, extensions, dates, times, substrings, regular expressions, and upper/lower case letters.
  • Integration with Konqueror and Krusader.
Version 3.0 of KRename was announced this week. The KRename home page lists numerous improvements, some of them include:

  • KIO-Slave Support for handling remote file operations.
  • Completely controllable by the command line.
  • Support for scripting via the DCOP interface.
  • Usability improvements, including simplified operation and a beginner mode.
  • New language translations.
  • Bug fixes.
  • Performance improvements.
  • New documentation in PDF format.

KRename looks like a very useful application, the software is available for download here.


(Log in to post comments)

KRename: "useful application" indeed.

Posted Jul 8, 2004 5:44 UTC (Thu) by Duncan (guest, #6647) [Link]

"KRename looks like a very useful application."

Indeed, I've certainly found it so.

Duncan

KRename: a Batch Renamer

Posted Jul 8, 2004 12:28 UTC (Thu) by sean.hunter (subscriber, #7920) [Link]

Thank goodness someone came up with this "useful" application.

Renaming lots of files simply wasn't possible on unix prior to the invention of Krename. I can't even remember how I would have done it before.

Oh, now it comes to me- a trivial shell script.

KRename: a Batch Renamer

Posted Jul 8, 2004 15:28 UTC (Thu) by mrshiny (subscriber, #4266) [Link]

You're right that renaming lots of files was always possible, but you're wrong in saying that this app is not useful.

First, it works with io slaves, so that means it can access files that aren't on your filesystem. This is transparent to the tool but not transparent to your shell script.

Second, what happens when someone who doesn't know how to write a shell script has to rename lots of files? Personally, I hate having to dust off my shell script skills whenever I need to do something that's not possible any other way. Shell scripts have their place, but if I can get done what I need to do with a few clicks it saves me lots of time reading the bash man page. Just because I know how to program doesn't mean that I want to write programs every time I want to do something.

Third, Krename supports file metadata plugins that are already present in KDE. This means you have access to lots of things that aren't necessarily visible in your shell. Sure, someone could write a command line tool that extracts that info, and maybe there is such a tool for some types of files, but do all of those tools have the same interface? Or does your trivial shell script have to massage the output from these tools differently for each tool?

I'm glad to see that someone has helped automate a task in a user-friendly manner. I'm looking forward to trying out krename. It may come to replace the tool I currently use to rename photos that I download from my camera, and it may also end up helping me with my movie and mp3 collection.

KRename: a Batch Renamer

Posted Jul 8, 2004 15:42 UTC (Thu) by openhacker (subscriber, #1614) [Link]

I haven't looked (or heard of this before).

But I've been using an application called mmv (posted to
comp.sources.??? in the late 80s) which has been very handy...

Shell scripts/loops also work...

marty

Other ways of renaming files: Larry Wall's rename

Posted Jul 9, 2004 19:19 UTC (Fri) by nicku (subscriber, #777) [Link]

I use rename, Larry's file fixer, shown here. It's surprisingly short, simple and flexible.

Copyright © 2004, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds