Originally Posted by evo2
not completely sure what you are actually asking, but the command rsync can be used to only copy files if the source file is newer (and different) to the destination file. Eg
rsync -auv /path/to/source/ /path/to/destination/
will recursively copy files in /path/to/source/ into /path/to/destination/ if the files are missing or older in /path/to/destination/
See the rsync man page and search online for tutorials for more information.
Sorry for my question. Let me clarify it:
For example, if I have a code AAA, which has been used in
What I want to do is when AAA has been updated, I also want to update the AAAs in the above folders.
If I used your suggested code or 'cp', the other question is how can I get all the paths containing the code AAA.