in reply to rename directories recursively to remove spaces from names

hehe... very good example for File::Find usage...
i come to suggest a oneliner shell version of it that i often use in my everyday work for verious purposes:
find2perl . -depth -eval 'my $o=$_; tr/_/ /; -e or rename $o,$_ or warn "cannot rename $o to $_: $!"' | perl

it's quick to use/modify action(s) (the strong area) without snooping into misc source code for any even beginner into regex craft ;-P

{
i like 'spaced' filenames :) ... also it's more difficult sometimes to parse those files =\ ... you'll always find a solution: *dumb example* 'ls -b | xargs ls -l' :))
}

--
AltBlue.

  • Comment on RE: rename directories recursively to remove spaces from names