Skip to content

napicella/go-linux-pipes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Companion code for the article Using Linux Pipes with Go

Build

go build -o ./bin/uppercase

Example

> cat words | sort | uniq | uppercase
APPLE
BYE
HELLO
ZEBRA

Command line options

> ./bin/uppercase --help
Simple demo of the usage of linux pipes
Transform the input (pipe or file) to uppercase letters

Usage:
  uppercase [flags]

Flags:
  -f, --file string   path to the file
  -h, --help          help for uppercase
  -v, --verbose       log verbose output
  
  
> echo "hello from the shell" | ./bin/uppercase
  HELLO FROM THE SHELL
  
> ./bin/uppercase -f /tmp/test 
  HELLO FROM FILE    

About

Companion code for the article Using Linux Pipes with Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages