From owner-freebsd-questions Mon Apr 8 13:44: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from comp104.hrpc.uic.edu (comp104.hrpc.uic.edu [128.248.230.104]) by hub.freebsd.org (Postfix) with SMTP id 0225137B41C for ; Mon, 8 Apr 2002 13:43:54 -0700 (PDT) Received: (qmail 85022 invoked by uid 1000); 8 Apr 2002 20:43:50 -0000 Date: Mon, 8 Apr 2002 15:43:50 -0500 From: Lucas Bergman To: Brendan McAlpine Cc: questions@freebsd.org Subject: Re: Scripting question... Message-ID: <20020408154350.B75071@comp104.hrpc.uic.edu> Reply-To: lucas@slb.to References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 1.0i In-Reply-To: ; from bmcalpine@macconnect.com on Mon, Apr 08, 2002 at 02:09:22PM -0400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > I have a set of directories that contain radius log files from the > last month. Each log file is named the same thing but the > directories they reside in are date stamped. I want to write a > script that searches the directories, finds files named ³detail², > and cats the detail files into one large combined file. I haven't tested this, but... $ ( find /some/dir -type f -name detail | xargs cat ) >target-file Lucas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message