Mailing List CGatePro@mail.stalker.com Message #92504
From: Urban Loesch <bind@enas.net>
Subject: Re: Logs
Date: Fri, 07 Sep 2007 13:25:30 +0200
To: CommuniGate Pro Discussions <CGatePro@mail.stalker.com>
grep "searchstring" /PATH/TO/FILES* >> $OUTPUTFILE

example:

grep "mail@mydomain.com" 2007-09-*.log >> mymaol.log

Regards
Urban

Darren Sundborg wrote:
Thanks Stefan that is great.

Sorry to be cheeky, but may I ask.

Could I now output it to a file?

Thanks in advance...



 
 
Disclaimer
 
================================================================
This email (which includes any files transmitted with it) is
confidential and may also be legally privileged.
It is intended solely for the use of the individual to whom it is
addressed. Any views or opinions presented are solely those of the
author and do not necessarily represent those of UKIP Media & Events
Ltd.
 
If you are not the intended recipient, be advised that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you have received this message in error, do not
open any attachment but please notify the sender (above) deleting this
message from your system. Please rely on your own anti-virus system, no
responsibility is taken by the sender for any damage rising out of virus
infection.
 
UKIP Media & Events Ltd.
Registered Address: 82 St John Street, London EC1M 4JN VAT No. GB879
4451 71 Registration Number: 5893940 Company registered in England and
Wales
 
 

-----Original Message-----
From: CommuniGate Pro Discussions [mailto:CGatePro@mail.stalker.com] On
Behalf Of Stefan Seiz
Sent: 07 September 2007 11:55
To: CommuniGate Pro Discussions
Subject: Re: Logs

On 07.09.2007 12:24 Uhr "Darren Sundborg" <d.sundborg@ukintpress.com>
wrote:

  
Hi Stefan

I am on a Linux box.

Can you Grep on multiple files then?

Thanks in advance
    


Sure. For example:

grep spammer@example.com SystemLogs/2007-09-*


--
Stefan Seiz <http://www.StefanSeiz.com>
Spamto: <bin@imd.net>



#############################################################
This message is sent to you because you are subscribed to
  the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to
<CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>




#############################################################
This message is sent to you because you are subscribed to
  the mailing list <CGatePro@mail.stalker.com>.
To unsubscribe, E-mail to: <CGatePro-off@mail.stalker.com>
To switch to the DIGEST mode, E-mail to <CGatePro-digest@mail.stalker.com>
To switch to the INDEX mode, E-mail to <CGatePro-index@mail.stalker.com>
Send administrative queries to  <CGatePro-request@mail.stalker.com>

  

Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster