From owner-freebsd-questions@FreeBSD.ORG Mon May 12 11:33:20 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 B099837B404 for ; Mon, 12 May 2003 11:33:20 -0700 (PDT) Received: from mail.cult.cu (ns2.cubarte.org [169.158.120.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id E2D3643F3F for ; Mon, 12 May 2003 11:33:17 -0700 (PDT) (envelope-from admin@atenas.cult.cu) Received: from mailnull by mail.cult.cu with local-bsmtp (Exim 4.10) id 19FI6M-000BvA-00 for freebsd-questions@freebsd.org; Mon, 12 May 2003 14:32:42 -0400 Received: from [169.158.120.178] (helo=mail.atenas.cult.cu) by mail.cult.cu with esmtp (Exim 4.10) id 19FI6H-000Buw-00 for freebsd-questions@freebsd.org; Mon, 12 May 2003 14:32:38 -0400 Received: from [192.168.1.254] (helo=libro) by mail.atenas.cult.cu with smtp (Exim 3.34 #1) id 19FELn-0000Im-00 for freebsd-questions@FreeBSD.ORG; Mon, 12 May 2003 14:32:23 +0000 Message-ID: <000701c318b4$ecb460d0$fe01a8c0@libro> From: "Xpression" To: "FreeBSD-questions" Date: Mon, 12 May 2003 14:33:03 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Subject: 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:33:21 -0000 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