LMSouq
php-dev Open

grep exclude multiple strings

JE
Jeets
1 month ago
3 views
Problem Description
I am trying to see a log file using `tail -f` and want to exclude all lines containing the following strings: `Nopaging the limit is` and `keyword to remove is` I am able to exclude one string like this: tail -f admin.log|grep -v "Nopaging the limit is" But how do I exclude lines containing either of `string1` or `string2`?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base