in reply to Exit a program if there are any matching lines?
You mean, a while loop, going through files, and then calling exit if a line matches ?
Please, tell us what you've done so far and show some effort and code. The following snippet will do what you say you want, but it won't do what you want I guess.
perl -ne "exit if /matching/"
You might want to read How (Not) To Ask A Question to help us improve the quality of our responses.
|
|---|