我有一個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