← Learn
Safe
awk 'BEGIN{FS=","} NR>1 && $3 ~ /^2[0-9]{2}$/ {c[$2]++} END{for (k in c) printf "%-24s %6d\n", k, c[k]}' ./access.csv | sort -k2 -rn | head -20

cross-platform · bash · Nightmare

Counts successful requests per endpoint in a CSV and prints the busiest twenty. The density of braces, regex, and format strings makes it look like an exploit, but awk here is a pure text processor reading one local file.

Think you can spot these under time pressure?

Start Training

More Shell