Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to rename batch of files named, to, at once. Is this possible?

share|improve this question

The rename command in terminal is a useful script that will take care of this for you using the simple VIM-style search and replace command. Assuming you have nothing else of the form Example*.java in your directory:

$ rename 's/Example/Q/' Example*.java

share|improve this answer

I remember there was a software called Bulk Rename in good old days of Ubuntu 7.10. I've searched for the package and i couldn't find it. But i've found another package Here. Just give it a try.

share|improve this answer

Good nautilus script. Let you preview before renaming.

share|improve this answer

Little bash script:

for file in Example*.java
  mv "$file" "${file/Example/Q}"

But still the question is duplicate, here :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.