maybe you are looking for ngrep?