Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bfontaine/iwc

Interactive wc(1)
https://github.com/bfontaine/iwc

c cli tool

Last synced: 2 months ago
JSON representation

Interactive wc(1)

Awesome Lists containing this project

README

        

# iwc(1)

[![Build Status](https://travis-ci.org/bfontaine/iwc.svg?branch=master)](https://travis-ci.org/bfontaine/iwc)

`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.

![](https://github.com/bfontaine/iwc/raw/master/imgs/iwc.gif)

## 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][man] for all available options.

[man]: https://bfontaine.github.io/iwc

### 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](https://github.com/bfontaine/iwc/blob/master/LICENSE)