8000 GitHub - awmpietro/wc: a simple version of the UNIX's command line tool "wc" written in golang
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

awmpietro/wc

Repository files navigation

wc command line tool

a simple version of the UNIX's command line tool "wc" written in golang.

Installation

To use this, clone the repo:

git clone https://github.com/awmpietro/wc.git

Usage:

Build and install

go install github.com/awmpietro/ccwc

In your terminal, use the commands:

// count the number of bytes
ccwc -c test.txt

// count the number of lines
ccwc -l test.txt

// count the number of words
ccwc -w test.txt

// count the number of characters
ccwc -m test.txt

// no options are provided is the equivalent to the -c, -l and -w options
ccwc test.txt

// read from standard input if no filename is specified
cat test.txt | ccwc -c
cat test.txt | ccwc -l
cat test.txt | ccwc -w
cat test.txt | ccwc -m

Contributing

Feel free to open issues or PRs if you find any problems or have suggestions!

About

a simple version of the UNIX's command line tool "wc" written in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0