that should be grep 'yyy' xxx > newlog.txt
yyy being look for this
xxx being file.
no reason to for the cat.


--- Mike Fetherston <[EMAIL PROTECTED]> wrote:
> Log ParsingYou could cat xxx | grep yyy > newlog.txt
> 
> That would do it without stopping syslog.  Mind you,
> your log could get out
> of hand because those entries are NOT removed.
> 
> Mike.
> 
> ----- Original Message -----
> From: Johnston Mark
> To: [EMAIL PROTECTED]
> Sent: Thursday, November 29, 2001 2:50 AM
> Subject: Log Parsing
> 
> 
> Hi all,
> I am writing a script to parse my system log (called
> xxxx) but I am not sure
> on the best procedure to get the daily logs and
> store them. As it stands the
> script stops syslog moves the file xxxx to a
> location and apends the date to
> the file. It then touches xxxx and starts syslog.
> Is that an acceptable way to do it ? Of course I
> loose logging info for the
> time that it syslog is not running.
> Thanks
> Mark
> _______________________________________________
> Firewalls mailing list
> [EMAIL PROTECTED]
> http://lists.gnac.net/mailman/listinfo/firewalls


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1
_______________________________________________
Firewalls mailing list
[EMAIL PROTECTED]
http://lists.gnac.net/mailman/listinfo/firewalls

Reply via email to