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


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:


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:


test 2


test 2

Running the command:

countdups -s /tmp/test[12]

CountDups outputs:

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


Download CountDups v0.02
( MD5SUM: 34174990df444228d75333d9ce17153b )

Image: Valid HTML 4.01 Transitional Image: DigitalOcean Virtual Servers - Complete VPS Solution - Image: Play Ogg - Support open media formats - Image: Quadronyx Logo - Image: DaTaPaX Domains - Image: Powered by Linux - The free OS - Image: Get Claws Mail - The user-friendly, lightweight and fast email client - Image: iHerb, Trusted Brands, Healthy Rewards, $10 off first order! -

Image: Pale Moon, Your browser, Your way -

Image: Close Windows, open doors -

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