Bandit Labs Writeup 7
Searching withgrep
You already know how to look for text in a file so this one is easy.
Note that while you can cat data.txt | grep ... this means cat has to return every line to sdtout. grep immediately snatches them so you dont see the lines. But grep can just search a file without reding from stdin. This can be a bit faster since it doesn't have the overhead of stdout