great article on what's expected as the output of a UNIX tool.
This is a web book, designed to be read on the web (with or without an internet connection).