← 返回命令列表

Linux command

rnm 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Search and replace

rnm -ss [old] -rs [new] [directory]

Example

rnm -ssf [old] -rs [new] [files]

Example

rnm -i 1 -inc 1 -rs [_] [files]

Example

rnm -ns/f [names.txt] [files]

Example

rnm -fo -ss [pattern] -rs [replacement] [files]

Example

rnm -s/mt -ss [pattern] -rs [replacement] [files]

Simulate

rnm -sim -ss [pattern] -rs [replacement] [files]

Undo

rnm -u

说明

rnm is a powerful bulk rename utility supporting regex, indexing, and name list files. It can rename files based on patterns, add sequential numbers, or use predefined name lists. The tool includes simulation mode for previewing changes and undo functionality for reverting mistakes. It handles complex renaming scenarios with fine-grained control.

参数

-ss _pattern_
Search string/regex
-ssf _string_
Fixed (literal) search string
-rs _replacement_
Replacement string
-i _start_
Starting index for numbering
-inc _step_
Index increment value
-ns/f _file_
Name list file
-fo
Files only (ignore directories)
-sim
Simulation mode (dry run)
-u
Undo last operation
-s/mt
Sort by modification time

FAQ

What is the rnm command used for?

rnm is a powerful bulk rename utility supporting regex, indexing, and name list files. It can rename files based on patterns, add sequential numbers, or use predefined name lists. The tool includes simulation mode for previewing changes and undo functionality for reverting mistakes. It handles complex renaming scenarios with fine-grained control.

How do I run a basic rnm example?

Run `rnm -ss [old] -rs [new] [directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -ss _pattern_ do in rnm?

Search string/regex