msgbartop
A cronological documentation test project, nothing serious, really!
msgbarbottom

13 Oct 08 Rename files in a folder to lower-case using perl

Posted by

This is a simple oneliner to rename files to lower-case using perl

# perl -e 'rename($_, lc) || warn "$_: $!\n" for @ARGV' *

You can also do this recusively using find and perl

# find . -type f -exec perl -e 'rename($_, lc) || warn "$_: $!\n" for @ARGV' {} \;

Tags: , ,

Leave a Comment

You must be logged in to post a comment.