If your typical grep workflow involves piping output through three other commands just to get what you need, then you’re doing it wrong. Grep has dozens of powerful flags that can help you count the number of lines, limit the output, extract patterns, and a whole lot more. Here are nine grep flags to help you find anything from the Linux terminal.