From owner-freebsd-questions@FreeBSD.ORG Thu May 12 17:09:13 2005 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 89FF816A4CE for ; Thu, 12 May 2005 17:09:13 +0000 (GMT) Received: from zhonka1.zhonka.net (zhonka1.zhonka.net [66.228.195.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35D7243D3F for ; Thu, 12 May 2005 17:09:13 +0000 (GMT) (envelope-from freebsd@philip.pjkh.com) Received: from wolf.pjkh.com ([66.228.196.74]) by zhonka1.zhonka.net (Post.Office MTA v3.5.3 release 223 ID# 0-58414U4500L450S0V35) with ESMTP id net; Thu, 12 May 2005 10:09:12 -0700 Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id A5A4058AF; Thu, 12 May 2005 10:09:07 -0700 (PDT) Received: from wolf.pjkh.com ([127.0.0.1]) by localhost (wolf.pjkh.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 35834-07; Thu, 12 May 2005 10:09:07 -0700 (PDT) Received: by wolf.pjkh.com (Postfix, from userid 1000) id 6D00B58AE; Thu, 12 May 2005 10:09:07 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by wolf.pjkh.com (Postfix) with ESMTP id 6435D58AB; Thu, 12 May 2005 10:09:07 -0700 (PDT) Date: Thu, 12 May 2005 10:09:07 -0700 (PDT) From: Philip Hallstrom To: Chris In-Reply-To: <42838801.1000507@makeworld.com> Message-ID: <20050512100817.K36277@wolf.pjkh.com> References: <42838801.1000507@makeworld.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by amavisd-new at pjkh.com cc: FreeBSD - Questions Subject: Re: Scripting help 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: Thu, 12 May 2005 17:09:13 -0000 install the 'mmv' port. >From the description... This is mmv, a program to move/copy/append/link multiple files according to a set of wildcard patterns. The wildcard matches can be reused in forming the target names. You can i.e. move all *.c.or? files to or?.new.*.c by saying 'mmv "*.c.or?" or=2.new.=1.c' The multiple action is performed safely, i.e. without any unexpected deletion of files due to collisions of target names with existing filenames or with other target names. Furthermore, before doing anything, mmv attempts to detect any errors that would result from the entire set of actions specified and gives the user the choice of either aborting before beginning, or proceeding by avoiding the offending parts. On Thu, 12 May 2005, Chris wrote: > I would like some advice on how to script something that will search > directories below a named root for all files ending with a certain file > extension. > > Then, mv or cp them to another location. > > > -- > Best regards, > Chris > > The first 90 percent of the task takes 90 percent of the > time, the last 10 percent takes the other 90 percent. > _______________________________________________ > 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" >