From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078613510501.tru64-unix-managers.marc@archive.invalid> From: managers account Date: Wed, 18 Jun 1997 14:24:19 +0000 To: tru64-unix-managers Subject: SUMMARY What is equivalent to rename for a global mv X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078613510501 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