Renaming a bunch of files with ranger and bulkrename

by jbrains
GNU/Linux ◆ screen-256color ◆ zsh 321 views

Use the full power of your favorite text editor to rename files! I use kakoune.

Here, I rename a bunch of *.markdown files to *.md. I know that one can do this with a relatively simple shell command, but notice that at first I try to just replace “markdown” with “md” everywhere, then I notice a problem: this matches some words in the base name when I only want to match the extension. The real power here lies in being able to try something reckless, preview it, then notice a mistake and try something else. No stress about making one false move with mv and then needing to figure out how to undo the mistake!