题解 | #第二列是否有重复#
第二列是否有重复
https://www.nowcoder.com/practice/61b79ffe88964c7ab7b98ae16dd76492
#!/bin/bash awk '{a[$2]++}END{for (i in a){if (a[i]>1) {print a[i],i}}}' nowcoder.txt | sort -k 1
第二列是否有重复
https://www.nowcoder.com/practice/61b79ffe88964c7ab7b98ae16dd76492
#!/bin/bash awk '{a[$2]++}END{for (i in a){if (a[i]>1) {print a[i],i}}}' nowcoder.txt | sort -k 1
相关推荐