#!/usr/bin/perl -w
##########################################################################
# $Id: removeheaders,v 1.4 1998/02/23 01:17:04 kirk Exp $
##########################################################################
# $Log: removeheaders,v $
# Revision 1.4  1998/02/23 01:17:04  kirk
# Getting ready for a first distribution
#
# Revision 1.3  1998/02/22 23:28:30  kirk
# Commented and rearranged some things
#
# Revision 1.2  1998/02/12 18:59:11  kirk
# Added support for log entries w/ no process ID...
#
# Revision 1.1  1998/01/25 01:41:33  kirk
# Added 'messages' log processors
#
##########################################################################

########################################################
# 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;
}
