10 lines
245 B
Bash
10 lines
245 B
Bash
# To try out our line filter, first make a file with a few
|
|
# lowercase lines.
|
|
$ echo 'hello' > /tmp/lines
|
|
$ echo 'filter' >> /tmp/lines
|
|
|
|
# Then use the line filter to get uppercase lines.
|
|
$ cat /tmp/lines | go run line-filters.go
|
|
HELLO
|
|
FILTER
|