01 / 06
uniq only looks next door
Let us start with the thing people trip over most.
~ $ uniq fruit.txtappleorangeapplebananaorangeappleNothing went, even though there are three apple.
Because uniq only looks at lines next to each other. It reads down from the top and throws a line away if it is the same as the one just before. That is all it does.
There are three apple, but with orange in between they never end up next to each other.