devops-exercises/topics/linux/exercises/uniqe_count/solution.md
abregman e6a80309e0 Add Terraform and Linux questions and exercises
Also updated the script that counts questions to actually update
the number in README.md
2022-10-30 22:08:05 +02:00

9 lines
272 B
Markdown

# Unique Count
## Objectives
In this directory you have a file with list of IP addresses called `ip_list`. Using the file, determine which IP address is the most recurring (listed the most times).
# Solution
`sort ip_list | cut -d' ' -f1 | uniq -c | sort -n | tail -1`