Transfer multiple different files in FTP


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Transfer multiple different files in FTP
# 1  
Old 04-02-2013
Transfer multiple different files in FTP

Hi All,

i am doing ftp

how can i transfer multiple different files
example-
03-21-13 06:33AM 46800 CATT_HOURS.pgp
03-21-13 06:33AM 266392 CATT_TAX.txt
03-21-13 06:33AM 91448 CATT_STATUS.txt
03-21-13 06:33AM 468 CATT_HOURS.pgp
i know will use mput how?
Thanks for you suggestions.

Thanks,
Krupa
# 2  
Old 04-02-2013
you can use mput or mget Smilie

Example:
Code:
mput CATT_*
mget CATT_*

This User Gave Thanks to PikK45 For This Post:
# 3  
Old 04-03-2013
sorry ...

Below are the list of files mixed with upper and lower case file extensions.

03-21-13 06:33AM 46800 CATT_HOURS.pgp
03-21-13 06:33AM 266392 CATT_TAX.txt
03-21-13 06:33AM 91448 CATT_STATUS.txt
03-21-13 06:33AM 468 CATT_HOURS.pgp

03-21-13 06:33AM 46800 CATT_HOURS.PGP
03-21-13 06:33AM 266392 CATT_TAX.TXT
03-21-13 06:33AM 91448 CATT_STATUS.TXT
03-21-13 06:33AM 468 CATT_HOURS.PGP

from here i need to transfer only lowercase extension files only ( CATT_HOURS.pgp,CATT_TAX.txt,CATT_STATUS.txt,CATT_HOURS.pgp)

Please give me some advice.

Thanks,
Krupa
# 4  
Old 04-03-2013
Basically two ways to do it. First way has separate command for each extension:
Code:
mput CATT_*.txt 
mput CATT_*.pgp

Second way is briefer, just one command, but possibly won't work on some systems, or dependent on glob command:
Code:
mput CATT_*.[a-z][a-z][a-z]

This User Gave Thanks to hanson44 For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to see the status of all the ftp put & get files logs and curent ftp transfer status ?

How to see the status of all the ftp put & get files logs and curent ftp transfer status if any active ftp running in the background ? (2 Replies)
Discussion started by: i4ismail
2 Replies

2. IP Networking

How to transfer files from UNIX server to windows machine or vice versa using ftp or sftp commands?

hi, i want to write a shell script code which transfers files from a directory in unix server to a directory in a windows machine.. can any1 give me a sample code which uses ftp or sftp command.. thanks very much, (3 Replies)
Discussion started by: Little
3 Replies

3. Shell Programming and Scripting

Transfer files from linux server to windows using secure ftp (sftp)

HI, I have to transfer files from linux server to windows using secure ftp (sftp) .Kindly help me out. (3 Replies)
Discussion started by: manushi88
3 Replies

4. Shell Programming and Scripting

FTP multiple files from multiple directories

I have multiple files that starts as TRADE_LOG spread across multiple folders in the given structure.. ./dir1/1/TRADE_LOG*.gz ./dir2/10/TRADE_LOG*.gz ./dir11/12/TRADE_LOG*.gz ./dir12/13/TRADE_LOG*.gz when I do ftp uisng mput from the "." dir I am getting the below given error mput... (1 Reply)
Discussion started by: prasperl
1 Replies

5. Shell Programming and Scripting

Help needed to transfer list of files to FTP server, to different folders

Hello Unix Gurus, Help required from you. My requirement is something like this I want to create a concurrenct program in Oracle Applications using shell script to transfer files from Apps Server to destination FTP server. I have created custom program, where I will extract all the... (4 Replies)
Discussion started by: amazon
4 Replies

6. Shell Programming and Scripting

Script for FTP (transfer only new files)

Hi everybody, I just want to transfer files with FTP (mget and mput). The problem is that I dont want to overwrite any existing files and don't want to transfer them again (e.g. using the rename-function). So I only want to transfer new files with mget and mput. My first idea was to create... (3 Replies)
Discussion started by: inoxx
3 Replies

7. Shell Programming and Scripting

get files from multiple directories using FTP

Hi, I need to download multiple files in multiple directores from other Unix server. The files could have been created by differnet user. I can use root account but I want the preserve the owner and time of the remote file. Need help on how I can do this using FTP. Thanks, Amit (2 Replies)
Discussion started by: amit1209
2 Replies

8. HP-UX

how to ftp multiple files

Hi, I have to write a ftp script which transfers multiple files from one unix server to another. When I try to transfer single file it goes through successfully. But, When I try to do multiple files none of the files get ftp'd. And also, even the single file goes transferred successfully, I... (4 Replies)
Discussion started by: isingh786
4 Replies

9. UNIX for Dummies Questions & Answers

Transfer files from Unix server to Windows using FTP

Dear Friend, I don't know much about unix.I am an VB6.0 Programmer.I need to move an text files as aaa.txt from unix server to windows "D: " driver using the FTP protocol.Is it possible to do this with help of unix shell script.If possible please give some sample codes. Please answer as early... (1 Reply)
Discussion started by: gjsaravanan
1 Replies

10. Shell Programming and Scripting

transfer of files via ftp from windows to unix

I am currently looking to write a script to transfer files from a windows NT server to a unix server any ideas of how to go about this? (1 Reply)
Discussion started by: chambala5
1 Replies
Login or Register to Ask a Question