From: managers account <managers () mannet ! mcb ! net>
To: tru64-unix-managers
Subject: SUMMARY What is equivalent to rename for a global mv
Date: Wed, 18 Jun 1997 14:24:19 +0000 [thread overview]
Message-ID: <96078613510501.tru64-unix-managers.marc@archive.invalid> (raw)
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
reply other threads:[~1997-06-18 14:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox