DEV Community

Fredy Sandoval
Fredy Sandoval

Posted on • Edited on • Originally published at fredy.dev

1

Renaming lots of files? This trick will save you hours!

Let's say you have 100 files that are named incorrectly, and you need to change a specific part of it's name.

The Question would be:

How do I rename several files at the same time?

Answer:
You can use a command line interface tool (cli) named Ranger. This tool will allow you to use your favorite text editor, Nano or Vim, to rename files in bulk.

Here are the steps:

Step 0.
Ensure you have Ranger installed, if you don't know how to install it, you can check this article.

Step 1.

In a new terminal, call ranger and select all the files you want to rename with the spacebar.

Step 2.
Once the files are selected, type :bulkrename this will open you an editor with the names of the files in it.

Step 3.
You can start editing the file names, all changes you make to the names will be applied to the actual filenames of your files, once you're done, just close and save it.

You will be prompted two times asking if you want to save and close.

Visual Example:

Image of Datadog

The Essential Toolkit for Front-end Developers

Take a user-centric approach to front-end monitoring that evolves alongside increasingly complex frameworks and single-page applications.

Get The Kit

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay