David Alan Black <dblack / candle.superlink.net> writes:

>   old, new = ARGV[1..2]  # or 0..1, as the case may be
> 
>   Dir["*"].each {|s|

In fact you could increase efficiency more by only returning those
files that match:

   #*untested*

   Dir["*#{old}*"].each ...


Dave