On 12/15/2011 5:21 PM, Toby Thain wrote:
$ ls | perl -n -e 'chomp; m/(.*)\.log$/
&& rename($_, "$1.old");'
Use 'find' to do it recursively, of course (try doing *that* in DOS).
for %f in (*) do ren %f %f.old
Seriously, this isn't difficult in DOS.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 version available for download
<http://legalizeadulthood.wordpress.com/the-direct3d-graphics-pipeline/>
Legalize Adulthood! <http://legalizeadulthood.wordpress.com>