cntbar real time counter. Sample $ cat foo.txt aaa bbb aaa ccc aaa ... ... $ tail -f foo.txt | cntbar