To remove duplicate lines just press Ctrl + F, select the “Replace” tab and in the “Find” field, place: ^(.*?)$\s+?^(?=.*^\1$). In search mode check “Regular expression” and click on replace all.
转载于:https://www.cnblogs.com/kakaisgood/p/8477876.html