不显示记录行数
cat a | sort | uniq -d |sort -r >aa
cat a | sort | uniq -u |sort -r >ab
显示行记录数
cat b | soft | uniq -dc | sort -r >ba
cat b | soft | uniq -uc | sort -r >bb
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/8806316/viewspace-1017485/ ,如需转载,请注明出处,否则将追究法律责任。