I could move one file at a file but wonder how to move multiple files at a
time. Any thoughs would be appreciated!
ftp>put foo.jpg
ftp>mkdir pic
ftp>rename foo.jpg pic/foo.jpg
Fei (Felix) Liu
ftp>put foo.jpg
ftp>mkdir pic
ftp>rename foo.jpg pic/foo.jpg
Fei (Felix) Liu
Why don't you just put it into the pic directory in the first place?Quote:>I could move one file at a file but wonder how to move multiple files at a
>time. Any thoughs would be appreciated!
>ftp>put foo.jpg
>ftp>mkdir pic
>ftp>rename foo.jpg pic/foo.jpg
ftp>mkdir pic
ftp>cd pic
ftp>put foo.jpg
If you want to put multiple files, use mput:
ftp>mput *.jpg
--
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
> >ftp>put foo.jpg
> >ftp>mkdir pic
> >ftp>rename foo.jpg pic/foo.jpg
> Why don't you just put it into the pic directory in the first place?
Quote:> ftp>mkdir pic
> ftp>cd pic
> ftp>put foo.jpg
> If you want to put multiple files, use mput:
> ftp>mput *.jpg
>> >I could move one file at a file but wonder how to move multiple files at a
>> >time. Any thoughs would be appreciated!
>> >ftp>put foo.jpg
>> >ftp>mkdir pic
>> >ftp>rename foo.jpg pic/foo.jpg
>> Why don't you just put it into the pic directory in the first place?
>Thanks for your reply. My friend asks me to help on this. he may have put
>all the jpg file in the root folder, then wants to make the structure
>more clear. He may doesn't have an telnet account. He could definitely
>use WS_FTP or any windows ftp client to select all / drag&drop ( is it
>implemented by basic ftp command?), but we are wondering whether we can
>do it from command line.
--
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
>>> >I could move one file at a file but wonder how to move multiple files at a
>>> >time. Any thoughs would be appreciated!
>>> >ftp>put foo.jpg
>>> >ftp>mkdir pic
>>> >ftp>rename foo.jpg pic/foo.jpg
>>> Why don't you just put it into the pic directory in the first place?
>>Thanks for your reply. My friend asks me to help on this. he may have put
>>all the jpg file in the root folder, then wants to make the structure
>>more clear. He may doesn't have an telnet account. He could definitely
>>use WS_FTP or any windows ftp client to select all / drag&drop ( is it
>>implemented by basic ftp command?), but we are wondering whether we can
>>do it from command line.
>No, I don't think there's a multiple-rename command in the standard Unix
>ftp client.
Obtain a list of the files to be moved with the 'dir' command.
Then process that list with:
Then invoke 'ftp' as:
ftp -i remote-system <moves
The 'sed' transforms the 'dir' output lines into lines like:
rename foo.jpg pic/foo.jpg
which are then sent to the remote end as a batch of individual
'rename' commands.
--
Microsoft is trying to add to the list of biggest lies of all time:
"Hi. I'm from Microsoft and I am here to protect you from the threat of
the GPL."
Hi,
After log in a remote ftp server, I want to move all files from one
directory to another. Would you tell me how to do that?
Thanks a lot! : )
-- Patience
3. Moving multiple files with wildcard
4. lifebook touchscreen driver
5. Moving multiple files with certain line counts
6. 2.2.16 / kernel-message: VM: do_try_to_free_pages failed for klogd...
7. Need help moving multiple files...
8. a Preliminary Linux porting Guide draft, please give your feedback and corrections
10. how do i concatenate multiple files then split them into multiple files
11. Linux will not allow me to move files over via FTP?
12. FTP : Can't move files between /home & /home2 (different hard drives)
13. Moving big files around linux; wget and ftp problems in redhat 7.2