我有一个CSS元素的文件,我试图检查任何重复的CSS元素,然后输出显示重复行的行。发现重复行
###Test ###ABC ###test ##.hello ##.ABC ##.test bob.com###Test ~qwerty.com###Test ~more.com##.ABC
###Test
& ##.ABC
已经存在于列表中,我想办法输出在文件中使用的线,基本上重复检查(区分大小写)。所以使用上面的列表,我会生成这样的东西..
Line 1: ###Test Line 7: bob.com###Test Line 8: ~qwerty.com###Test Line 5: ##.ABC Line 9: ~more.com##.ABC
东西在bash,或者也许是perl?
谢谢:)
太多work. – tchrist 2010-11-24 13:13:57