KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
How do I grep for lines that contain two input words on the line? I'm looking for lines that contain both words, how do I do that? I tried pipe like this: grep -c "word1" | grep -r "word2" logs It just stucks after the first pipe command. Why?
Tags (comma-separated)
Save Edits
Cancel