root@bionic:~# cat num
1
10
11
0
2
root@bionic:~# sort num
0
1
10
11
2
root@bionic:~# sort -n num
0
1
2
10
11
Sort按字典排序和按数字排序(sort -n)的区别
最新推荐文章于 2024-04-19 23:06:55 发布
root@bionic:~# cat num
1
10
11
0
2
root@bionic:~# sort num
0
1
10
11
2
root@bionic:~# sort -n num
0
1
2
10
11