develooper Front page | | Postings from March 2006

Re: file renamer (i'm a newbie)

Thread Previous
Andrew Savige
March 24, 2006 16:53
Re: file renamer (i'm a newbie)
Message ID:
--- Eric Waguespack wrote:
> Currently the file below renames files by changing spaces to underscores.
> usage:
> find | ./
> how could it be shortened up?
> I would eventually like to modify it so that it will will modify names
> so that they only contain 'a-z0-9._'

For some general solutions to renaming files, see Larry's historic
rename script:

Aristotle's modern facelift of that script at:

and the Unix rename faq:

Renaming files is also discussed in Perl Cookbook, recipe 9.9.

I think the mailing list is more appropriate
for this type of question.



On Yahoo!7 
Messenger - Make free PC-to-PC calls to your friends overseas. 

Thread Previous Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About