Skip to content
Advertisement

How to quickly rename my files on macOS or linux from CLI?

Here’re my source files.

JavaScript

I need to figure it out a way to rename all the files to remove the first 36 characters up to _file or replacing as something else. I am expecting all the files are as below.

JavaScript

Thanks in advance!

Advertisement

Answer

You can use rename like this:

JavaScript

If you are on macOS, you can install rename with homebrew:

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement