Tuesday, December 17, 2013

search muiltiple word from a file and return the result

there is a case that I need search the bigger application log and only list the logs from 2 or 3 specific classes.
i use grep to get the result.

here is the syntax

grep -r "SapPaymentDataAccessor1\|SapFiPaymentSOAPImpl1\|PaymentClrProcess" *.*

No comments:

Post a Comment