Skip to Main Content

uniq -u does not work as expected?

DBA092012Aug 18 2016 — edited Aug 18 2016

Hello everybody.

Just try to get uniq patternes from /var/log/messages with

cat /var/log/messages | tr -s ' ' | cut -d ' ' -f 5 | uniq -u

and a bit confused with results instead getting only uniq entries i have a bulk of duplicates.

I use OL 7.2

Please advise.

This post has been answered by DBA092012 on Aug 18 2016
Jump to Answer
Comments
Post Details
Added on Aug 18 2016
5 comments
407 views