Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

This question already has an answer here:

I'm using linux and I have a project with files named myproject-someextention.whatever and someotherstuffmyproject and so on.

I'd like to recursively rename everything that has myproject in the file / folder name and rename it to yourproject.

share|improve this question

marked as duplicate by Dennis, Scott, Randolph West, Nifle, TFM Mar 16 '13 at 12:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Please have a look at superuser.com/questions/213134/… – mpy Mar 15 '13 at 19:39
    
Never done before in the history of mankind. – Ярослав Рахматуллин Mar 16 '13 at 2:06
up vote 1 down vote accepted

Try rename from util-linux (http://www.kernel.org/pub/linux/utils/util-linux).

$ find .
.
./yourprojectfolder
./yourprojectfolder/source.of.yourproject
./yourproject.manifest

$ find . -type d -exec rename yourproject myproject {} \;
find: `./yourprojectfolder': No such file or directory

$ find . -type f -exec rename yourproject myproject {} \;

$ find .
.
./myprojectfolder
./myprojectfolder/source.of.myproject
./myproject.manifest
share|improve this answer

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