01 / 06
You only want part of the line
In the last lesson you counted addresses in a log. But that was a file of nothing but addresses. Real logs have long lines.
192.168.0.1 - - [21/Aug/2026] "GET /index.html" 200When you want to count only the address in there, handing over whole lines is no use. Every line differs, so uniq -c answers "one" for all of them.
You need a tool that pulls out just the column you want. That is cut.