gobyexample/096-line-filter.sh
2012-09-23 11:21:03 -04:00

10 lines
196 B
Bash

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