ngrep v1.34 is a program that mimics as much functionality in GNU grep as possible, applied at the network layer. ngrep stands for network grep, and is a pcap-aware tool that will allow you to specify extended regular expressions to match against the data payloads of packets, and currently recognizes TCP and UDP, and works on ethernet, ppp and slip interfaces. Excellent tool. Check it out!
939652cf9f6d668430106174d30bf55b2ebcfca11a57e5555e63e483b590d841