This is my solution to John Crickett's build your own wc coding challenge. You can run a test suite that compares the system's default wc output with my implementation with: ./run_tests.sh To use the program, do: lua wc.lua -flag <filename>