"Saskatoon": counting IPs. - solution #74
Closed
16monav-sys
started this conversation in
Scenarios
Replies: 1 comment
-
|
@16monav-sys The issue is that your pipeline never sorts before uniq -c, so uniq -c is only counting consecutive duplicate IPs, not total occurrences across the file. You can look at the Clues in the scenario for the solution with 482 occurrences, while yours has 273 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
awk '{print $1}' "$LOG" | sort | uniq -c | sort -nr | awk 'NR==1 {print $2}' > "$OUT"
while LOG is for log file and OUT for highestip.txt.
how its wrong?
Beta Was this translation helpful? Give feedback.
All reactions