Linux Pipelines, xargs, split, diff, and Practical Recipes Cheat Sheet/Show most frequent error messages
Count and rank repeated lines in a log.
Section: Practical Recipes
Show most frequent error messages
bash
bash
grep ERROR app.log | sort | uniq -c | sort -nr | headExplanation
One of the most useful Linux text-processing recipes for logs and incident triage.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Practical Recipes
Show effective config lines only
Remove comments and blank lines from a config file.
Sum a CSV column
Compute the total of a numeric CSV field after skipping the header.
Replace text across many files safely
Search files first, then edit in place.