Hands-on task
This task is step 19 of the course “Text in the terminal: grep, sed, awk”
Who is scraping the shop: top 3 IPs
The shop is slow — looks like someone is scraping the catalog. /var/log/nginx/shop_access.log is an nginx access log, the IP is the first field. Find the three IPs that sent the most requests and write them to /root/top_ips.txt — one address per line, the most active first, without counts.
What you'll practise:
- pipeline
- awk
- sort
- uniq -c
- head