Assume have a directory of files in an Angular.io project. We need to clone them all but rename and do a find+replace in them to work with another model name. The old model is plot
and the new model is photo
.
- Clone the directory and contents
cp -r plot photo cd photo
- create a script to receive the results from our
find
: