Sorting lines
Distinguish sorting from adjacent duplicate removal.
Power User
Lesson goal
Distinguish sorting from adjacent duplicate removal.
How it works
sort orders lines; uniq removes adjacent duplicate lines. The simulation reads one file and leaves it unchanged.
sort notes/first.txt
uniq notes/first.txtTry it
Run the commands and compare output order.