Skip to the content
moneyslow.com
  • link
  • vps
  • all
  • about

shell按字符串长度排序一个文本

moneyslow | 2020-02-25
老师怎么通过培训班赚钱

假设文本文件a.txt:

awk ' { print length, $0}' a.txt | sort -n | sed 's/.* //'

Categories: 最新文章 标签:字符串长度排序

文章导航

← discuz将代码放置在 head标签标记之间的最方便方法
好用的ssh远程终端推荐:MobaXterm →
© 2023 moneyslow.com
京ICP备11047313号-19