$ ./guess_the_languageLinux CLI
Linux CLI · medium · #14

What does this print?

printf 'a\nb\na\n' | uniq | wc -l
  1. 3
  2. 2
  3. 1
  4. 0
uniq only collapses adjacent duplicates; the two a lines are not next to each other, so all 3 survive. Sort first to dedupe.
Play Linux CLI ▸