Hands-on task
This task is step 4 of the course “Text in the terminal: grep, sed, awk”
Count repetitions
/root/hits.txt contains a list of page hits (one line per hit, pages repeat). For each unique page, count how many times it occurs and write to /root/counts.txt lines of the form <count> <page>, sorted by descending frequency.
What you'll practise:
- sort
- uniq
- pipelines
- frequency counting