题解 | #第二列是否有重复#
第二列是否有重复
https://www.nowcoder.com/practice/61b79ffe88964c7ab7b98ae16dd76492
#!/bin/bash
cat nowcoder.txt | awk '{print $2}' | sort | uniq -c | sort -k1 | awk '$1 != 1 {print}'
第二列是否有重复
https://www.nowcoder.com/practice/61b79ffe88964c7ab7b98ae16dd76492
#!/bin/bash
cat nowcoder.txt | awk '{print $2}' | sort | uniq -c | sort -k1 | awk '$1 != 1 {print}'
相关推荐