• 2024-11-15bash sort 命令的用法
    给定一个test.txtbanana,2,8apple,2,7cherry,2,9banana,3,4cherry,3,5apple,3,10sort命令默认按照字典从左到右逐个字符依次从小到大排序,空格和制表符是默认域分隔符字典顺序就是基于Unicode字符编码的值来排序的默认排序:$cattest.txt|sortapple,2,7apple,3,10b