Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 Example1.java, Example2.java to Q1.java, Q2.java 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

http://gnome-look.org/content/show.php/Renamer?content=87601

Good nautilus script. Let you preview before renaming.

share|improve this answer

Little bash script:

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

But still the question is duplicate, here :)

share|improve this answer

Your Answer

 
discard

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.