From owner-freebsd-questions Wed Jan 8 10:46:25 2003 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 6C7BE37B401 for ; Wed, 8 Jan 2003 10:46:24 -0800 (PST) Received: from electricrain.com (electricrain.com [64.71.143.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id B5F7443EE1 for ; Wed, 8 Jan 2003 10:46:23 -0800 (PST) (envelope-from fuzzy@electricrain.com) Received: (qmail 22698 invoked by uid 540); 8 Jan 2003 18:46:18 -0000 Date: Wed, 8 Jan 2003 10:46:18 -0800 From: Chris Doherty To: "BigBrother (BigB3)" Cc: freebsd-questions@freebsd.org Subject: Re: Renaming files with spaces in the name to files without spaces.. Message-ID: <20030108184617.GE1579@zot.electricrain.com> Reply-To: chris-freebsd@randomcamel.net References: <20030108175539.W65616@bigb3server.bbcluster.gr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030108175539.W65616@bigb3server.bbcluster.gr> User-Agent: Mutt/1.4i X-Operating-System: XEmacs X-Koan: mu. Organization: The Inside Foundation 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 On Wed, Jan 08, 2003 at 06:01:50PM +0200, BigBrother (BigB3) said: > -----BEGIN PGP SIGNED MESSAGE----- > Sorry for this OT but I am trying for some hours to achieve a massive > rename of files using a simple script and I have not success yet. I want > to rename files like there is already a general utility for this: /usr/src/contrib/perl5/eg/rename . leviathan:/home/chris:1168> /usr/src/contrib/perl5/eg/rename Usage: rename perlexpr [filenames] not only already written and tested, but you get to use perl regexen. :-) HTH, Chris ------------------------------- Chris Doherty chris [at] randomcamel.net "I think," said Christopher Robin, "that we ought to eat all our provisions now, so we won't have so much to carry." -- A. A. Milne ------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message