From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/962 Path: news.gmane.org!not-for-mail From: "Charles M. Gerungan" Newsgroups: gmane.comp.sysutils.supervision.general Subject: Pattern matching to different logfiles Date: Tue, 20 Dec 2005 13:47:45 +0100 Message-ID: <92344711-E374-4C12-BC7E-5D71D5491B96@nednieuws.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1135082931 31094 80.91.229.2 (20 Dec 2005 12:48:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Dec 2005 12:48:51 +0000 (UTC) Original-X-From: supervision-return-1198-gcsg-supervision=m.gmane.org@list.skarnet.org Tue Dec 20 13:48:49 2005 Return-path: Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1EoguG-0003f3-NM for gcsg-supervision@gmane.org; Tue, 20 Dec 2005 13:47:52 +0100 Original-Received: (qmail 32223 invoked by uid 76); 20 Dec 2005 12:48:12 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 32217 invoked from network); 20 Dec 2005 12:48:12 -0000 Original-To: supervision@list.skarnet.org X-Mailer: Apple Mail (2.746.2) Xref: news.gmane.org gmane.comp.sysutils.supervision.general:962 Archived-At: I have a log that I would like to split to different files. Every line is prepended with a keyword and I'd like to output to a logdir named keyword. So if there are 5 different keywords I'd like to log to five different logdirs, if possible deleting that keyword (including the trailing space) from the line in the process. Is that possible? -- Regards, Charles.