A utility to help rename various files at once, using a text editor. This script will open the list of files in a directory in a text editor (by default, vi). Then any changes made in the editor will be reflected in the filesystem (the files in the directory will be renamed to the names saved in the editor).
Unix/Linux with Python only: copy to /usr/local/bin or elsewhere on $PATH, rename to vimv and make executable.
On the command-line:
1. type vimv to open the list of files in the current directory in a text file (the list returned by ls);
2. make the changes, save and quit.
The filenames are updated when you quit. If you delete a name (leave a blank line where a filename used to be), the file will be deleted (this will not work with directories). A log of the changes is written to ~/.vimv_history.
Multiple directory listings can be updated in sequence, e.g., like this:
$vimv . ./dir1 ./dir2
Files can be moved between directories, relative names can be given in the file; double quotes should not be used in the file.
For more details execute vimv --help.
Download Vimv from here
Incoming search terms:
- how to rename a file in vi editor
- vi rename
- how to rename file in vi editor
- rename file in vi editor
- how to name a file in vi
- how to rename word in vi editor
- except OSError as exc syntaxerror invalid syntax
- rename file in ubuntu terminal using vi
- except OSError as e: ^ SyntaxError: invalid syntax