1,543
社区成员
发帖
与我相关
我的任务
分享
BEGIN {
FS=";"
}
{
col1[NR - 1] = $1
col2[NR - 1] = $2
col3[NR - 1] = $3
}
END{
len = length(col2)
for (i = 0; i != len; ++i)
{
printflag = 1
for (j = 0; j != len; ++j)
{
if (i == j) continue
else {
if (col1[j] == col1[i] && col2[j] == col2[i]) {
printflag = 0
break
}
}
}
if (printflag == 1) print col1[i] ";" col2[i] ";" col3[i]
}
}