photo credit: hermzz via photopin cc

How to mass rename files in Unix


Here’s a little trick when you need to mass rename files in Unix: for example, if you have a bunch of files where you need to replace the word “foo” with “bar” you can do as such:


Visitors give this article an average rating of 4.0 out of 5.

How would you rate this article?

One thought on “How to mass rename files in Unix”

  1. Simon says:

    Or use rename -v ‘s/foo/bar/ *
    Something like that 😉

Leave a Reply to Simon Cancel reply