Computing.Net > Forums > Unix > FTP Rename using wildcards

FTP Rename using wildcards

Reply to Message Icon

Original Message
Name: Scott
Date: October 7, 2003 at 13:02:06 Pacific
Subject: FTP Rename using wildcards
OS: AIX
CPU/Ram: ?
Comment:

Hello! I need to write a script that will ftp some files from an NT server down to a Unix server. Once the files have been ftp'd, I need to rename the extension of the files to .bak on the NT server. The ftp rename command does not allow wildcards, and I don't know the names of the files other than they all end in .rpt. Can anyone shed some light on how to go about doing this? My thoughts were to ftp to a special directory, do an ls >> filelist, and somehow rename using the names in $filelist. Am I on the right track, or is there an easier way?

Thanks,
Scott


Report Offensive Message For Removal








Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: FTP Rename using wildcards

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge