sort -u -t, -k1,1 file
测试结果:
overflow@domain2.com,2009-11-27 00:58:29.793000000,xx3.net,255.255.255.0 stack2@domain.com,2009-11-27 01:05:47.893000000,xx2.net,127.0.0.1
欢迎分享,转载请注明来源:内存溢出
sort -u -t, -k1,1 file
测试结果:
overflow@domain2.com,2009-11-27 00:58:29.793000000,xx3.net,255.255.255.0 stack2@domain.com,2009-11-27 01:05:47.893000000,xx2.net,127.0.0.1
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)