in reply to How to do a recursive rename ?
Thnaks people to indicate me I could edit an already sent nodelet.for ( glob "*.abc" ) { ($new = $_) =~ s/\.abc$/.edf/; rename $_, $new or warn "can't rename '$_' to '$new': !"; }
Note 1: On Unix at least, rename will never delete a file. But renaming a file to a clear screen string can be almost as bad.
Note 2: The camel3 p 154 explains better than I could the idiom ($a = $b) =~ s///
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: How to do a recursive rename ?
by Adam (Vicar) on Sep 12, 2000 at 03:59 UTC |