>_ IzzyLab

Topic breakdown

Frequency counting in the shell relies on the fact that uniq collapses and counts only adjacent identical lines, so the input is first brought into sorted order. uniq's count option prepends the number of repetitions before each unique line. To order the result from most frequent to least, the pairs are passed through sort once more — numeric and in reverse order; all of this joins naturally into a pipeline via |.

What's checked

  1. most frequent page first
  2. counts are correct

What it looks like