in reply to Rename multiple files following their directories' name

Are you looking for something like?
for $i (1..100) { system( "mv /folder$i/abc.txt /folder$i/folder$i.txt" ); }
I run under win7, so I have not tested it. If you want to search for files you need File::Find.
For every complex problem there is an answer that is clear, simple, and wrong. H. L. Mencken

Replies are listed 'Best First'.
Re^2: Rename multiple files following their directories' name
by moritz (Cardinal) on Mar 19, 2013 at 11:35 UTC