Skip to content

bfontaine/iwc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iwc(1)

Build Status

iwc(1) is an interactive wc(1). It mostly works like the original wc but prints the lines number as it counts them instead of waiting for the end to print it.

Install

With Homebrew

brew install bfontaine/utils/iwc

From source

git clone https://github.com/bfontaine/iwc.git && cd iwc
git checkout v0.1.3  # last stable version
[sudo] make install

Usage

$ iwc myfile.txt

See the man page for all available options.

Examples

You can combine iwc with tail -f to follow the number of lines in a file that’s constantly growing (like logs):

$ tail -f -n +1 your_file | iwc -l

License

MIT