Deleting duplicates with awk is pretty common and simple. But I need to print only those lines that are duplicated ,whenwhen we compare only one column. I tried this command :
awk 'seen[$2]++'
but as uyou can see it has flaws. It prints duplicates, but only since their 22nd appearance. I've only started getting used to unix and bash, so it would be great with besides answer uif you could explain athe solution to me.