I've been pulling my hair on this slightly.
I'm trying to use the find command to achieve the following;
find ./folder -name "folder names x" -exec grep -H "String, Text, Here" {} \; -print
folder names x
- appear in multiple locations at different levels.
String, Text, Here
- is the text string I want to search for given files within the above folder names only.
I could return a list of folder names then create a specific grep within those, but I want to try and streamline this into one command if possible.
Although I've used Unix for a number of years, I still haven't done scripting, but happy to try if I need to.
Thanks for any help.
Andrew