选项与
-f:忽略大小写的差异
-b:忽略最前面的空格部分
-M:以月份的名字来排序
-n:使用纯数字进行排序
-r:反向排序
-u:就是uniq,相同的数据中,仅出现一行代表
-t:分隔符,预设是用tab键来分隔
-k:以那个区间filed来进行排序
[zhang@localhost ~]$ cat 1.txt | sort
abc
abcdefg hijklmn
hello
HEllo1
hello2
hello world
opqrst uvwxyz
world
world3
-r参数进行反向排序
[zhang@localhost ~]$ cat 1.txt | sort -r
world3
world
opqrst uvwxyz
hello world
hello2
HEllo1
hello
abcdefg hijklmn
abcsort

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2021-10-31
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2021-08-31
  • 2022-12-23
  • 2021-07-04
  • 2021-11-30
相关资源
相似解决方案