Renaming Files [message #244133] |
Mon, 11 June 2007 12:36 ![Go to next message Go to next message](/forum/theme/orafaq/images/down.png) |
Krishna_dev
Messages: 32 Registered: May 2007
|
Member |
|
|
Hello, I have several files with the following naming convention sitting in the same directory.
MyFile.0001.dat
MyFile.0002.dat
MyFile.0003.dat
MyFile.0004.dat
MyFile.0004.dat
I would now like to rename each file and append it with a prefix of Processed so they will now read like:
ProcessedMyFile.0001.dat
ProcessedMyFile.0002.dat
ProcessedMyFile.0003.dat
ProcessedMyFile.0004.dat
ProcessedMyFile.0004.dat
Could someone please tell me how to do this using Korn shell. An in depth example would be much appreciated.
|
|
|
|