I have a bunch of files, that I would like to upcase the names.
So far I have a small script that does this:
use strict; use warnings; use File::Find; use File::Copy; my $scandir="path/to/files"; my $outpath="path/to/out/directory"; find(\&update, $scandir); sub update() { if (-f $_) { my $file = $_; $file = uc($file); move("$File::Find::name","$outpath/$file") } }
Is there a way to do that in a one-liner?
(the files need not to be copied to a different location, inplace
is fine too)
In reply to rename files to upcase by si_lence
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |