Re: copy with extension rename

tns1 <[email protected]>
Newsgroups gmane.comp.gnu.utils
Organization Cox
Message-ID <[email protected]>
Karl Berry wrote:
>     simplest way to copy and rename all *.a files to *.b   ???
> 
> Different people will have different answers.  What I do is:
> 
> rename.pl 's/a$/b/' *.a
> 
> where rename.pl is the appended Perl script (it exists in many versions
> around the net).  This version is slightly modified by me from lwall's
> original to print the successful renames.
> 
> karl
> 
> 
Thanks,
I ended up using make to do the job since I am compiling now anyway. 
This is under cygwin and I don't want to install another 5MB just to 
rename some files.

I am really surprised it can't be done easily with cp, since with DOS 
its just copy *.c *.o.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.