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

13 Oct 2008 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: , ,

Comments are closed.