- Batch rename files and directories with your favorite editor.
go install github.com/cqroot/edname@latest
Execute the following command in the directory where you need to rename the files:
edname
This command will open an editor (vim
by default) with a buffer listing the files in the current directory.
Change the file name in the buffer, and then exit.
Note that do not change the number of lines and do not adjust the order.