1
0
Fork
You've already forked cw
0
a way smaller C99 reimplementation of wc
  • C 91%
  • Makefile 9%
2026年05月28日 18:40:57 +00:00
src fix: move word logic inside else branch of newline check and fix gitignore 2026年05月28日 18:08:38 +00:00
.gitignore fix: move word logic inside else branch of newline check and fix gitignore 2026年05月28日 18:08:38 +00:00
LICENSE Add LICENSE file 2026年05月28日 18:40:57 +00:00
Makefile feat: correct makefile and finish it 2026年05月28日 13:02:23 +00:00
README.md add readme 2026年05月28日 18:40:04 +00:00

cw

a lighter, way smaller reimplementation of wc

wc is a tool used to count words, lines, largest line length, and more within a file specified. It is much smaller than the GNU tool made to do the same task called wc.

installation

Unlike wc, cw requires only a C99 compatible C compiler in order to build, and doesn't pull in any insanely large dependencies. A Makefile is provided with cw to automate and ease the process of compiling. To build and install cw to your PATH, simply run:

make && sudo make install.

usage

You use cw the exact same way you use wc. Usage instructions are below.

cw [file...]
cw [-lwcmL] [file...]

licensing

licensed under The Unlicense