• nmrename release soon.

    I plan to release my first version of nmrename this month. EXIF and id3 support needs at least an additional month. Before I’ll put out a release I need to do a few things:

    • Write a test script. This script should create thousands of files and test all possible edges of nmrename.
    • A better way to call the commands from main(). All commands have the same structure and there is a lot of duplicate code in cmd.c.
    • Website on Sourceforge with a documentation with examples.

    All rename features for the release are implemented. Here’s the help text:

    nmrename 0.1 – A mass renaming tool.
    Copyright 2007 by Stefan Lohmaier <noneuss AT gmail DOT com
    Usage:
    nmrename [PATHLIST] [COMMANDS]

    [PATHLIST] is a list of the paths (dirs and files) you want to rename.
    [COMMANDS] is a list of commands that will be executed one by one.

    COMMANDS:
    -h : Print this text.
    -f : Renames without asking. Use with CAUTION!
    -c : Clear the pathlist.

    -cc : Camelcase (e.g. hallo -> Hallo)
    -cu : Uppercase (e.g. hallo -> HALLO)
    -cl : Lowercase (e.g. HALLO -> hallo)

    -d [POS1] [POS2] : Remove from POS1 to POS2.

    -sr [S1] [S2] : Replace all occurences of S1 with S2.
    -sd [S] : Delete all occurences of S.
    -si [S] [POS] : Insert S at POS.

    -fd [POS] [S] : Deletes field POS. Fielddelimiters are in S.
    -fs [POS1] [POS2] [S] : Switches field POS1 with field POS2.
    Fielddelimiters are in S.

    [POS*] can be 0,1,2,… or -0,-1,-2,… (‘-’ starts counting from the right).
    [S*] is a string of your choice.


  • nmrename lives!

    Yes. Noneus’ mass renaming tool is still alive. I added some functionality and created a Sourceforge Project. All the sources are in the subversion repository.
    So the current features are:

    -Delete from position to position
    -Insert string at position
    -Remove/Replace strings
    -Lower-/Upper-/Camelcase
    -Delete field with specified field delimiters

    This last one took some serious thinking. A major problem at the moment is that multiple operations in one cmdline are not supported. I will fix this very soon.

    [Update:] Fixed the issue. Revision 2 now does multiple operations.


Switch to our mobile site