Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I want to grep for lines containing one word but not another... can the following be combined into one grep?
grep -v "WORD2" file | grep "WORD1"

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |