Date: Thu, 12 May 2005 10:09:07 -0700 (PDT) From: Philip Hallstrom <freebsd@philip.pjkh.com> To: Chris <racerx@makeworld.com> Cc: FreeBSD - Questions <freebsd-questions@freebsd.org> Subject: Re: Scripting help Message-ID: <20050512100817.K36277@wolf.pjkh.com> In-Reply-To: <42838801.1000507@makeworld.com> References: <42838801.1000507@makeworld.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050512100817.K36277>