Linux Shell Command-rename file, often using mv command, rename files in batches is the best choice, Linux rename Command has two versions, one is the C language version, one is in the Perl language. Judgment Method: enter man rename to see that the first line is RENAME (1) Linux Programmer's Manual RENAME (1) this is the C language version-I use the C language version, and if RENAME (1) Perl Programmers Reference Guide RENAME (1) appears, This is the C language version format of the Perl version: rename New String file name Example 1: two files exist in directory test: a_01 and a_02. If you need to replace a with B in the file name and the other parts remain unchanged, (1) if it is currently in the test directory, run rename a B * (2) if it is in the parent directory of test, run the rename a B test/* Perl language version format: rename's/original string/New String/'file name Example 2: Question Example 1, if (1) is currently in the test directory, run rename's/a/B/'* (2). If the current directory is in the parent directory of test, run the rename's/a/B' test/* script implementation method: [python] find-name "a *"-print | while read name do echo $ name rename's/a/B/'$ name done