我有一個.csv文件,如下所示:[email protected],2009-11-27 01:05:47.893000000,example.net,[email protected],2009-11-27 00:58:29.793000000,example.net,[email protected],2009-11-27 00:58:29.646465785,example.net,256.255.255.0...我必須從文件中刪除重復的電子郵件(整行)(即[email protected],上面示例中包含的行之一)。如何uniq僅在字段1(用逗號分隔)上使用?根據man,uniq沒有列選項。我嘗試了一些東西,sort | uniq但是沒有用。
- 3 回答
- 0 關注
- 903 瀏覽
添加回答
舉報
0/150
提交
取消