Rename script or ...?

Dag von Arnold dag at ericsson.se
Wed Feb 6 19:18:34 AEST 1991


I am used to the VAX/VMS world. There I can do the following commands

rename foo.* bar.*
rename *.pas *.c

The first of these commands would rename all files beginning with 'foo.' 
to 'bar.' but retaining the suffixes from the input. The second command 
would only change the suffix.

How should I do this in UNIX? Is there a tool to use or do I have to write a 
script, and in that case, what should the script look like?


/Dag



More information about the Comp.unix.shell mailing list