S3.Blog

17 Апреля 2026
A A A   RSS-лента
"Я знаю, что ничего не знаю, но многие не знают и этого". Сократ [?].

Linux: Сгруппировать и посчитать

Дата последнего изменения: 2 Октября 2015
Метки статьи: Одной строкой, Linux, Shell/Bash
Однострочник, представленный ниже, пригодится тем, кому надо быстро что-то сгруппировать и посчитать совпадения - например логи апача.


Похожие материалы:




jame003 (гость) • ответить
Used this exact command for my logs earlier today and it saved me so much time. Probably as useful as using period-calculator for keeping track of cycles, honestly.
qeewr (гость) • ответить
Standard uniq -c stuff, but always nice to have a quick reference when you're staring at logs. Reminds me of when I was trying to figure out margin-vs-markup for some client work last week.
qeewr (гость) • ответить
Handy one-liner, though I usually just use ai-responsegenerator when I'm too lazy to pipe through awk. Saves me from messing up the syntax every single time.
qeewr (гость) • ответить
Sorting logs with sort and uniq is a classic, though I usually end up needing a heic to png converter for the screenshots when I'm debugging these things. Nice simple one-liner though.
bear (гость) • ответить
That sort command is a lifesaver for quick log parsing, way better than writing out a full script. You should check out Delta Executor if you ever need to automate stuff on the fly.
teb (гость) • ответить
Honestly `sort | uniq -c` is the only way to keep my sanity when checking logs. If you're bored of counting logs, try this random question generator instead.
teb (гость) • ответить
sort | uniq -c is classic but my brain always defaults to awk for log parsing. honestly this is way easier than setting up a trello alternative just to track simple errors.
bac calculator (гость) • ответить
This bac calculator is really accurate and easy to use. It helps you estimate your blood alcohol content quickly and make safer decisions about drinking and driving.
tima (гость) • ответить
Sort | uniq -c is classic, but I usually just end up piping to awk instead. Definitely bookmarking this before I forget the syntax again, kinda like how I need a concrete slab calculator for my backyard project next week.
anna (гость) • ответить
Standard `sort | uniq -c` is fine for simple stuff, but for actual data parsing you're better off just using awk. Should probably use a block wall estimator if you're trying to build a structure out of your logs though.

 
 
  Имя *:   Решите пример *: =
 
Полужирный Курсив Подчеркнутый Перечеркнутый
 
Вставить изображение Сделать цитатой Вставить ссылку Вставить код

Вставить смайл
 
 

 



© S3.Blog: Если критикуешь, не предлагая решения проблемы, то ты становишься частью этой проблемы.