#!/usr/bin/perl -w
##########################################################################
# $Id: removeheaders,v 1.5 2002/10/12 02:08:20 kirk Exp $
##########################################################################

########################################################
# This was written and is maintained by:
#    Kirk Bauer <kirk@kaybee.org>
#
# Please send all comments, suggestions, bug reports,
#    etc, to kirk@kaybee.org.
#
########################################################

# Removes the beginning of each line of a standard /var/log/messages-style
# logfile.

while (defined($ThisLine = <STDIN>)) {
    $ThisLine =~ s/^... .. ..:..:.. [^ ]* [^ ]*\[[0123456789]*\]: //;
    $ThisLine =~ s/^... .. ..:..:.. [^ ]* [^ ]*: //;
    print $ThisLine;
}

