vidir
TLDR
Edit filenames in editor
SYNOPSIS
vidir [-v] [files|directory]
DESCRIPTION
vidir edits filenames in a text editor. It opens file list for editing.
Each line shows a number and filename. Modify filenames to rename.
Deleting lines removes files. Empty lines are ignored.
Changing numbers reorders (if supported). Some versions support this.
Save and quit applies changes. All renames happen at once.
Useful for batch renaming. Editor features like search/replace available.
PARAMETERS
-v, --verbose
Verbose output.files
Files to edit.directory
Directory to edit.
ENVIRONMENT
EDITOR - Editor to use
VISUAL - Visual editor
EXAMPLE
Editor shows:
2 file2.txt
3 old_name.doc
2 document2.txt
3 new_name.doc
CAVEATS
Part of moreutils package. Careful with deletions. Test on copies first.
HISTORY
vidir is part of moreutils by Joey Hess. It provides intuitive file renaming using familiar editor interfaces.
