> What's the canonical method of renaming several files at once? In
> this case I have a directory of files ending in '.z' which I want to
> rename to ending in '.Z'.
>
> DOS command.com could do this with move/ren and wildcards, but
> that won't work under unix. Can you do it easily with a short bourne
> shell script? Something like: for each file in directory do (strip old
> extension, add new extension, pass --> to mv)?
The GNU shtool package has a `move' command that does just what you
want:
http://www.gnu.org/software/shtool/
Example use:
shtool move -e *.z %1.Z
-bill
---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]