Counting adjacent repeated lines

Count repeat visits

Now count how many requests came from each visitor. This fresh machine has the same unsorted ~/access.log; it does not contain the sorted file you made in the previous challenge.

Your goal

Create ~/visit-counts.txt with one record per address: its request count followed by the address. Include every address once and keep ~/access.log unchanged. Row order and spaces between the count and address do not matter here.

Starting Linux…

Stuck?

    Something wrong or confusing?

    Challenge not found

    This challenge doesn't exist (any more). See all challenges.