CountDups --- A tool for counting duplicate (optionally sequential) lines in a stream or file(s).


About

CountDups is a simple script to count lines within a stream or one or more files. It can count either all duplicate lines in general, or all sequential ones.

Features include:

Requirements

CountDups is just a bash script and therefore only requires bash.

Having said that, it has only been tested in Linux (and only ArchLinux at that).

Use Case

Here is an example of using CountDups to count sequential lines in 2 files:

/tmp/test1:

test
test 2
test
test

/tmp/test2:

test
test 2
test
test

Running the command:

countdups -s /tmp/test[12]

CountDups outputs:

1 test
1 test 2
3 test
1 test 2
2 test

Download

Download CountDups v0.02
( MD5SUM: 34174990df444228d75333d9ce17153b )

Image: Valid HTML 4.01 Transitional Image: DigitalOcean Virtual Servers - Complete VPS Solution - http://www.digitalocean.com/ Image: Play Ogg - Support open media formats - http://playogg.org/ Image: Quadronyx Logo - http://www.quadronyx.org/ Image: DaTaPaX Domains - http://store.domains.datapax.com.au/ Image: Powered by Linux - The free OS - http://www.linux.org/ Image: Get Claws Mail - The user-friendly, lightweight and fast email client - http://www.claws-mail.org/ Image: The Browser You Can Trust.  Get Firefox - http://www.mozilla.com/firefox Image: iHerb, Trusted Brands, Healthy Rewards, $10 off first order! - http://www.iherb.com/?rcode=HBN436

Last updated: 2014-10-02 14:16 UTC