The following stindgrep program demonstrates a simple version of the grep utility that reads its input from stdin.
This zip file contains the complete crate.