/cc-wc

WC Tool from coding challenges.

Primary LanguageGoMIT LicenseMIT

cc-wc

My solution to the challenge Build Your Own wc Tool.

Requirements

  • Go (version 1.16 or higher).

Usage

  1. Build the program:

    go build ccwc.go
  2. Run the program with the desired options:

    ./ccwc [options] <file>

    or

    cat <file> | ./ccwc [options]

Option flags

  • -c to count bytes
  • -l to count lines
  • -w to count words
  • -m to count chars