美文网首页Linux系统
LC_ALL=C 加速你的排序

LC_ALL=C 加速你的排序

作者: 热衷组培的二货潜 | 来源:发表于2019-05-23 23:37 被阅读9次

参考链接:how-to-sort-big-files

  • So IMO, chances are you always want sort -uwith LC_ALL=C, if you want unique lines. And if you want that resulting list to be sorted in the user's sort order, pipe it to sort again:
LC_ALL=C sort -u | sort

LC_ALL=C sort | LC_ALL=C uniq -c | sort -k2

相关文章

网友评论

    本文标题:LC_ALL=C 加速你的排序

    本文链接:https://www.haomeiwen.com/subject/aeaizqtx.html