Tag Archives: grep

GNU and UNIX Commands: grep with AND instead of OR

We all know how easy it is to grep for something OR something_else:

However, there’s no elegant way to grep for something AND something_else:

Easiest way around this (and most elegant) is with awk: