sort

中級
1/7
user@linux:~/workspace$
sort data/names.txt

Explanation

Sorts all lines alphabetically. Uppercase letters come before lowercase in default sort order.

Options

-rReverse sort order
-nSort numerically
-uRemove duplicates (unique)
-tSpecify field delimiter
-k NSort by field N
-fCase-insensitive sort
-hSort human-readable numbers (1K, 2M)
1Alice
2bob
3Carol
4alice
5david
6Eve
7BOB
8frank
9Grace
10alice
11Henry
12ivy
13Jack
14bob