From owner-freebsd-questions Tue Nov 27 7:42:55 2001 Delivered-To: freebsd-questions@freebsd.org Received: from blount.mail.mindspring.net (blount.mail.mindspring.net [207.69.200.226]) by hub.freebsd.org (Postfix) with ESMTP id AA9C337B41B for ; Tue, 27 Nov 2001 07:42:49 -0800 (PST) Received: from user-38ldipv.dsl.mindspring.com ([209.86.203.63] helo=Main) by blount.mail.mindspring.net with smtp (Exim 3.33 #1) id 168kNh-00006B-00; Tue, 27 Nov 2001 10:42:45 -0500 Message-ID: <006e01c1775a$0946a030$0300a8c0@jayyness.com> From: "Totally Jayyness" To: "Brian T. Schellenberger" , "Edwin Groothuis" Cc: References: <20011127164741.F579@k7.mavetju.org> <01112703072100.65893@i8k.babbleon.org> Subject: Re: Mass Renaming of Files Date: Tue, 27 Nov 2001 08:41:48 -0700 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 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 Thanks, I will check these out! ----- Original Message ----- From: "Brian T. Schellenberger" To: "Edwin Groothuis" ; Cc: Sent: Tuesday, November 27, 2001 1:07 AM Subject: Re: Mass Renaming of Files > On Tuesday 27 November 2001 00:47, Edwin Groothuis wrote: > > On Mon, Nov 26, 2001 at 03:54:19PM -0500, jayyness@mindspring.com wrote: > > > Do any of you know of a script that could be written or possibly existst > > > that would search for and replace spaces with underscores? > > I have a script called "unmsdos" that makes names "unix-friendly" (eliminates > spaces as well as leading dashes, ampersands, parentheses, and other cruft. > It also invokes my "uncrnl" program to undo CR-NL if it's a text file. Enjoy. > > BTW, is this worth cleaning up and turning into a port sometime? Opinions > welcome. > > > > > What kind of rename/move are you talking about? > > > > There is, normally, no reason to worry, since you always can use > > "mv 'blaat blaat' /some/other/place" without having to worry about > > spaces. > > Well, you can, but *what* a pain. And when do you do things like piping an > ls into xargs, it gets the names all wrong. Spaces in file names are totally > for the birds. > > > > > If you have to do selections in directories regarding files, it > > might be easier to use Midnight Commander or something. > > > > Edwin > > -- > Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) > Brian, the man from Babble-On . . . . bts@babbleon.org (personal) > http://www.babbleon.org > > -------> Free Dmitry Sklyarov! (let him go home) <----------- > > http://www.eff.org http://www.programming-freedom.org > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message