Hi all,
I have to run a complex "find command" but do not get the exactly information I want to.
In fact I want to find all "scripts" located on the systems which contain a specific "path".
I set it up in this way "find / -exec grep 'pattern' {} \;"
but the result shows only the lines where the "pattern" occurs
and not the name of the file/script which does not help me at all.
Maybe there is an additionally parameter in the syntax needed which I just don´t know? Otherwise I think I will have to write a script for this issue.
Thank you so far
Alex
I have to run a complex "find command" but do not get the exactly information I want to.
In fact I want to find all "scripts" located on the systems which contain a specific "path".
I set it up in this way "find / -exec grep 'pattern' {} \;"
but the result shows only the lines where the "pattern" occurs
and not the name of the file/script which does not help me at all.
Maybe there is an additionally parameter in the syntax needed which I just don´t know? Otherwise I think I will have to write a script for this issue.
Thank you so far
Alex