Skip to content

ogul1/unix-wc-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unix Word Count Utility in Go

wc command in Unix systems, implemented in Go.

Steps to use the project:

  1. make build → creates the go-wc executable
  2. sudo ln -s "$PWD/go-wc" /usr/local/bin/go-wc → creates a symbolic link to the go-wc executable in $PATH so we don't have to use the ./ prefix everytime we run the app.
  3. go-wc [-c | -l | -w] <file-name> or cat <file-name> | go-wc [-c | -l | -w] or simply go-wc [-c | -l | -w] and you can type directly to the terminal, and the app will start counting words.
  4. Optional flags:
    • -c → Prints bytes in the given stream
    • -l → Prints lines in the given stream
    • -w → Prints words in the given stream

About

Unix wc Utility in Go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published