题解 | #第二列是否有重复#
第二列是否有重复
https://www.nowcoder.com/practice/61b79ffe88964c7ab7b98ae16dd76492
#!/bin/bash
cat nowcoder.txt | cut -d" " -f 2 | sort | uniq -c | awk '{if($1>1) print $1,$2}' |sort -n
第二列是否有重复
https://www.nowcoder.com/practice/61b79ffe88964c7ab7b98ae16dd76492
#!/bin/bash
cat nowcoder.txt | cut -d" " -f 2 | sort | uniq -c | awk '{if($1>1) print $1,$2}' |sort -n
相关推荐