#unix #rename #normalizer #cli #directory

bin+lib normie

Just another filename normalizer tool

3 stable releases

new 1.0.2 May 14, 2024
1.0.1 Jul 22, 2021
1.0.0 Jul 20, 2021

#198 in Command-line interface

Download history 14/week @ 2024-02-25 35/week @ 2024-03-31 1/week @ 2024-04-07 98/week @ 2024-05-12

98 downloads per month

Apache-2.0

14KB
248 lines

normie

Just another filename normalizer tool.

Recursively normalize directories and filenames to Unix friendly standard.

No dependencies, really simple and fast.

Example

$ touch "B)E(T%T@E*R T*H*I&S W@A*Y#" "G)O(O%@D N*A*M&E@**#"
$ ls
'B)E(T%T@E*R T*H*I&S W@A*Y#'  'G)O(O%@D N*A*M&E@**#'
$ normie -lra .tgz *
$ ls
better_this_way.tgz  good_name.tgz

Help

normie 1.0.2

USAGE:
    normie [FLAG]... DIRECTORY_OR_FILE...

FLAGS:
    -a: Append the specified text at the end of the filename.
    -h: Show this help information.
    -i: Insert the specified text at the beginning of the filename.
    -l: Transform the resulting filename into all lowercase characters.
    -r: Remove these characters: '!"#$%&'()*+,/:;<=>?@[\]^`{|}~ªº'.
    -t: Interactively asks for confirmation of each action.
    -u: Transform the resulting filename into all uppercase characters.
    -v: Show information about the performed actions.

Installation

You have to install rust and a linker if you don't already have them.

$ cargo install normie

Warning

Use flag -t if you are insecure of the results.

No runtime deps