Skip to content

Latest commit

 

History

28 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccwc

ccwc is a Go implementation of the Unix wc (word count) utility.
It can count characters, words, lines, and bytes in a file.

Features

  • Supports counting lines, words, characters, and bytes.
  • Can process multiple files at once.
  • If no file is specified, reads from standard input.
  • Provides counts separately or together.
  • Lightweight, fast, and works cross-platform.

Installation

Clone the repository and build the program with Go:

go build -o ccwc

Usage

./ccwc -c file.txt   # count bytes
./ccwc -m file.txt   # count characters
./ccwc -w file.txt   # count words
./ccwc -l file.txt   # count lines

Examples

./ccwc -c test.txt
1234 test.txt

./ccwc -m test.txt
1200 test.txt

./ccwc -l test.txt
56 test.txt

./ccwc -w test.txt
200 test.txt

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages