On 16/12/11 2:21 PM, Richard wrote:
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.
I suspected someone would come up with a neat answer, thanks.
I like the way this thread is winkling out arcana of all kinds.
--T