procmail
[Top] [All Lists]

Re: Matching repeating lines?

1997-02-10 10:52:35
-----BEGIN PGP SIGNED MESSAGE-----

=== Nothing above this line is part of the message. ===

Lars Kellogg-Stedman <lars(_at_)bu(_dot_)edu> wrote:
:Syslog on some machines is broken, and instead of adding a note to the
:effect of "previous message repeated 271 times", it will include all 271
:seperate log messages.
:
:I don't need to see all of these.
:
:What's the most efficient way of filtering lines that are repeated more
:than <n> times?

If you're willing to settle for n=1, try the "uniq" command (but don't
sort first, as most situations would require).  For more information
and the correct options to use, type at the Unix shell prompt

  man uniq

Signatures Follow. (tm)

-----BEGIN PGP SIGNATURE-----
Version: 2.6.2

iQCVAwUBMv9b/u7FqQNEGv6lAQHnLwP/Z/WeRpObYn7TmzZUZZ1vHg6Cw3+I68rA
bnvllBD2+Rbf2W+vr+A2lVhsAOXHh9fiaF0HwIbUvF3z2xqWmD7GuX6p4fysaShd
xEao5j+4pYMQsgwSv47MEXMtr6FPohrCTgk7vaecHX4l0fGnSqczh04ePw1pqzfA
D4YvmXQzdpM=
=nn6j
-----END PGP SIGNATURE-----

-- It is now safe to turn off your computer.
Bill Evans/Box 4829/Irvine, California 92716/(714)551-2766  _   /| ACK!
Email-To: wje(_at_)acm(_dot_)org  -- PGP encrypted mail preferred. --  \`o_O' /
   Finger wje(_at_)netcom(_dot_)com for public key.   Key #: 441AFEA5   =( )=
PGPprint: FB D0 1C 1D EF DC 26 BA  B3 9E 84 0B 40 D6 59 9C     U

<Prev in Thread] Current Thread [Next in Thread>