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).
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 CountDups v0.02
( MD5SUM: 34174990df444228d75333d9ce17153b )
![]() ![]() ![]() ![]() ![]() ![]() ![]() |
|
![]() |
Last updated: 2014-10-02 14:16 UTC