shell按字符串长度排序一个文本作者: moneyslow / 2020-02-25 假设文本文件a.txt: awk ' { print length, $0}' a.txt | sort -n | sed 's/.* //'