Extract rows
We can also use awk to fetch rows that match a certain pattern. For example, if we’re only interested in chicken bowls, we can specify the conditions under which a row should be output:
Or to only retrieve certain columns:
An alternative to this pattern is to use an if statement to decide whether to print a line or not (I prefer this approach since it looks more like other programming languages):