Does Ugrep support Searching across files #422
Answered
by
genivia-inc
sharrythakur
asked this question in
Q&A
-
I have a pattern 'Sushant AND Thakur' I want to run ugrep on a directory and i want the output if Sushant is present in one file and Thakur is present in other files under the directory. |
Beta Was this translation helpful? Give feedback.
Answered by
genivia-inc
Mar 5, 2025
Replies: 1 comment
-
This can be done with a bash script to search for one pattern in a file in a directory and when found in a directory then search for the other pattern in that directory. Grep tools exit with code 0 when a file matches so it can be used in a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
genivia-inc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This can be done with a bash script to search for one pattern in a file in a directory and when found in a directory then search for the other pattern in that directory. Grep tools exit with code 0 when a file matches so it can be used in a
if-then
to invoke the second grep.