Don't use (cat file | grep pattern)

http://mywiki.wooledge.org/BashGuide/Practices#Don.27t_Ever_Do_These