TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG:9972] Help with Grep



On Wed, 10 Nov 1999, Jonathan Kline wrote:

> Hello Again:
> 	Basically what I'm trying to do is search through a given file,
> namely /var/log/secure and look for FAILED LOGIN, ROOT LOGIN and refused
> connect.  When the above patterns are found, I want the line containing
> the pattern to be copied to a specified text file.... Does anyone know how
> to do this? IF so is it even possible?
> 	Thanks For the help!
> 
> 
> 	Jonathan Kline, A+
> 	Webmaster at students.ism-sabis.net
> 

If you want to monitor the files live, give swatch a try. Just running on
the hunch that you want to watch your logs for anything important... using
swatch is nicer than having to copy everything to a seperate file, plus
it's live.

-- 
Nate Carlson <carlson@real-time.com>    | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500