From a870b9995d9b48a117afb66905afd0fd42050b6c Mon Sep 17 00:00:00 2001 From: Mark McGranaghan Date: Tue, 9 Oct 2012 11:13:13 -0700 Subject: [PATCH] line-filter --- src/line-filters/line-filters.go | 2 +- src/line-filters/line-filters.sh | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/line-filters/line-filters.go b/src/line-filters/line-filters.go index 3f66a61..9f43803 100644 --- a/src/line-filters/line-filters.go +++ b/src/line-filters/line-filters.go @@ -35,7 +35,7 @@ func main() { // The `EOF` error is expected when we reach the // end of input, so exit gracefully in that case. - // Otherwise there is a problem. + // Otherwise there's a problem. if err == io.EOF { return } diff --git a/src/line-filters/line-filters.sh b/src/line-filters/line-filters.sh index dfd718e..5cb5450 100644 --- a/src/line-filters/line-filters.sh +++ b/src/line-filters/line-filters.sh @@ -1,8 +1,9 @@ -# Make a file with a few lowercase lines. +# To try out our line filter, first make a file with a few +# lowercase lines. $ echo 'hello' > /tmp/lines $ echo 'filter' >> /tmp/lines -# Use the line filter to get uppercase lines. +# Then use the line filter to get uppercase lines. $ cat /tmp/lines | go run line-filters.go HELLO FILTER