Hands-on task
This task is step 6 of the course “cut, sort, uniq and friends”
uniq -c: count repeats
In /root/items.txt there are repeated lines. Count how many times each one occurs and write the result (count value) to /root/counts.txt.
What you'll practise:
- uniq
- sort
- counting repeats
- pipelines
- redirection