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.
