Hello
Im new to this forums, I would like some help regarding a script that I need in order to copy some files. Heres the scenario:
I need to search several files which have a particular code inside, lets say "test" all of them on different directories. I need to copy all of them on a new directory.
find . | xargs grep "TEST"
I use this file command in order to find the files that i need that have the word "test" inside. I need to run this from root in order to find all the files containing this word and then something that automaticaly copies all the files on a new directory.
Any idea?
Best Regards