SUMMARY What is equivalent to rename for a global mv

From: managers account <managers_at_mannet.mcb.net>
Date: Wed, 18 Jun 1997 15:24:19 +0100 (BST)

I had an enormous number of replies each with valid methods, too many to
acknowledge individually so a 'global' thankyou. I particularly liked the
interactive approach of

 foreach file (Q*)
          mv $file $file:s/Q/q/
        end


and the piped command


ls -1 Q* | sed '/Q\(.*\)/s//mv Q\1 q\1/' | tcsh

I also received a number of substantial PERL programs which cater for
name mungeing in more general terms. I can forward them to anybody
interested.

I was taken to task for being frustrated in the first place with
observations that the foreach construction was very powerful, and I do
acknowledge this. However, NONE of the solutions is as short as
 PIP Q*=q*/re
!!
To all the ancient warriors out there who miss PIP and sympathised with
me: vale!
Stuart McKenzie
Received on Wed Jun 18 1997 - 16:40:30 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:36 NZDT