I too need a similar function. I found an awk program that delete duplicates called histsort:
{
if (data[$0]++ == 0)
lines[++count] = $0
}
END {
for (i = 1; i <= count; i++)
print lines[i]
}
The delete is based on the entire line. I need to delete based on a key wihtin...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.