Kinda urgent, FTP usage question

Jupitus

Old and short, no wonder I'm grumpy!
Staff member
Moderator
FH Subscriber
Joined
Dec 14, 2003
Messages
3,292
Folks,

I need some help here at work. I have a directory within which are about 100 sub-directories. In each subdirectory are a large number of data files. I want only 1 file from each directory, but I really do NOT want to have to delve into each one one at a time. Is there a way to use a recursive swicth in an ftp mput command, so I could run an mput from the master directory and have files meeting a name criteria (they all start the same in the filename, no problem there) from all of the subdirectories ftp'd to a remote machine?

Ta in advance... oh, and it's in a linux environment btw.
 

Moriath

I am a FH squatter
Joined
Dec 23, 2003
Messages
16,209
no i dont think so could you not do a copy -r filename*.* to ./tempfolder

and just ftp those in the tempfolder you have copied to the single location.

UNIX is a bit rusty but i guess thats how i would try and do it
 

Users who are viewing this thread

Top Bottom