gobyexample/068-line-filter/line-filter.sh
Mark McGranaghan 434392e67c index work
2012-09-23 14:54:59 -07:00

9 lines
188 B
Bash

# Make a file with a few lowercase lines.
$ echo 'hello' > lines
$ echo 'filter' >> lines
# Use the line filter to get uppercase lines.
$ cat lines | go run line-filter.go
HELLO
FILTER