On 9/28/22 10:29, Alex Benoit wrote:
For instance, if I run the grep command from /, and I have the files: /a/b/folder/file.xml /a/b/file2.xml /a/folder/file3.xml /folder/file4.xmlI want to match the file.xml, file3.xml and file4.xml, but not file2.xml, because it is not under a folder named "folder".
For that, you should use 'find' as a front end for 'grep'. It's the usual software tools philosophy.