Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2003 12:38:09 -0500
From:      parv <parv_fm@emailgroups.net>
To:        "BigBrother (BigB3)" <bigbrother@bonbon.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Renaming files with spaces in the name to files without spaces..
Message-ID:  <20030108173809.GA64488@moo.holy.cow>
In-Reply-To: <20030108175539.W65616@bigb3server.bbcluster.gr>
References:  <20030108175539.W65616@bigb3server.bbcluster.gr>

next in thread | previous in thread | raw e-mail | index | archive | help
in message <20030108175539.W65616@bigb3server.bbcluster.gr>, wrote
BigBrother (BigB3) thusly...
>
> 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
> 
> "RESULTS OF JAN 01 2002.txt "
> 
> to
> 
> "RESULTS_OF_JAN_01_2002.txt"

here is another way in perl (though it changes blanks to '-'; edit
as you desire)...

  http://www103.pair.com/parv/comp/src/perl/sanename.perl

  description...

    http://www103.pair.com/parv/comp/src/perl/sanename.perl.pod


  - parv

-- 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030108173809.GA64488>