/wc.cr

A POSIX-compliant implementation of the wc command-line utility, written in 50 lines of Crystal.

Primary LanguageShellMIT LicenseMIT

wc - word, line, character, and byte count

A POSIX-compliant implementation of the wc command-line utility, written in 50 lines of Crystal.

This project was originally built as a reference implementation for a coding challenge.

Setup

To install Crystal, follow the instructions.

Building

To compile the code:

make wc

Testing

To run the tests:

make test