Sorting lines

Put matching lines together

The incident team exported one visitor address per request to ~/access.log. Requests from the same visitor are scattered through the file. Put identical addresses next to each other before counting them.

Your goal

Save every line of ~/access.log, sorted in this machine's byte order, to ~/sorted-visits.txt. Keep repeated addresses: each line represents one request. Leave the source unchanged.

Starting Linux…

Stuck?

    Something wrong or confusing?

    Challenge not found

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