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

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

FTP Rename using wildcards

Reply to Message Icon

Name: Scott
Date: October 7, 2003 at 13:02:06 Pacific
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



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


file time check unable to login HELP!!!



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: FTP Rename using wildcards

script error using ftp -v -n <<EOF www.computing.net/answers/unix/script-error-using-ftp-v-n-ampltamplteof/2993.html

Err msg 550 in FTP www.computing.net/answers/unix/err-msg-550-in-ftp/5756.html

Trying to telnet, ftp to pc NT4 Workstation !! www.computing.net/answers/unix/trying-to-telnet-ftp-to-pc-nt4-workstation-/1179.html