题解 | #shell域名进行计数排序处理#
域名进行计数排序处理
http://www.nowcoder.com/practice/f076c0a3c1274cbe9d615e0f3fd965f1
#! /usr/bin/env bash
########################################################
#
#
########################################################
function solution_1() {
cat nowcoder.txt | awk -F"/" '{print $3}' | sort | uniq -c | sort -n -rk1 | sed 's/^[ \t]*//g'
}
########################################################
#
#
########################################################
function solution_2() {
:
}
solution_1