Ravi Sir's Cards › AWS
Text toolbox
Text toolbox. cut splits on a delimiter. Use a CSV parser when a quoted field may contain that delimiter. uniq -c counts neighbouring equal lines. Sort first only to count matching lines across the full input.
Read card text
What this card says
Pick fields
cut splits on a delimiter. Use a CSV parser when a quoted field may contain that delimiter.
Count runs or totals
uniq -c counts neighbouring equal lines. Sort first only to count matching lines across the full input.
Example
Log IP counts: extract the IP field from your log format, sort it, then run uniq -c. Sort the counts numerically to find the highest totals.