From owner-freebsd-questions@FreeBSD.ORG Mon May 12 11:44:43 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB03637B401 for ; Mon, 12 May 2003 11:44:43 -0700 (PDT) Received: from cerebellum.za.net (cerebellum.za.net [196.34.172.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id A163F43F75 for ; Mon, 12 May 2003 11:44:42 -0700 (PDT) (envelope-from ian@cerebellum.za.net) Received: from [196.30.239.21] (helo=ian) by cerebellum.za.net with asmtp (TLSv1:RC4-MD5:128) (Exim 3.36 #1) id 19FISQ-000JbM-00; Mon, 12 May 2003 18:55:30 +0000 From: "Ian Barnes" To: "Xpression" Date: Mon, 12 May 2003 20:44:16 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <000701c318b4$ecb460d0$fe01a8c0@libro> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal cc: freebsd-questions@freebsd.org Subject: RE: Making a shell script... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2003 18:44:43 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org > [mailto:owner-freebsd-questions@freebsd.org]On Behalf Of Xpression > Sent: 12 May 2003 08:33 PM > To: FreeBSD-questions > Subject: Making a shell script... > > > Hi guys: > I try to make a script to rotate some log files every month, > file must be appear like this (Month-Year.tgz)...the question > is: how can > I compress all files in a sub-dir that contains many sub-dirs without > compress sub-dirs too...sample: > > /mydir/one-dir > /another-one > file1 > file2 > file3 > > I try to tar & compress file[1..3] without compress /one-dir, /another-one > directories...I'm already looked at man pages without a response...thanks > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org" > Hi, Stupid question: Why dont you use newsyslog ? /etc/newsyslog #man newsyslog Ian