Script to rename files

Tony Nelson tonynelson at georgeanelson.com
Sat Jun 4 00:32:17 UTC 2005


At 12:58 AM +0200 6/4/05, Emmanuel Seyman wrote:
>On Fri, Jun 03, 2005 at 10:19:54AM +0200, Juan L. Pastor wrote:
>>
>> I need a script to rename several files to docXXX.txt where XXX is a
>> number I can define, for example 054, and the following files will be
>> renamed as 055, 056,... Can you help?
>
>rename doc "" doc???.txt
>
>if I understand you correctly.

I don't think you understand.  In his example, the resulting file name
should still contain "doc".  He didn't give an example of an input file
name, so, technically, I don't understand either.  I don't know if the
files are all named "doc.txt" now, or have distinct names such as "alice",
"betty", and "cathy", or what.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the users mailing list