-1

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.

Shamoon
  • 277
  • 2
  • 7
  • 22

1 Answers1

1

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