Interview question

This question is step 7 of the course “First steps with text”

Why sort comes before uniq

easy~4 min

Why is uniq almost always written after sort? What does uniq -c print for a file with the lines a, b, a — without sorting and with it?

Just like in an interview: answer in your own words, and the AI will mark which key points you covered. To pass, cover more than half of them.

Loading…