How to ftp multiple files by taking the file name from a input file.

view full story

http://www.unix.com – Hi, I'm working on a script which has to copy multiple files from one server to another server. The list of files that are to be copied is present in a file say input.txt. Code: vi input.txt   abc.c welcome.c new.c welcome1.c for ftp'ing a single file say 'new.c' the following code works fine. Code:         HOST="xxxxxx"     USER='xxxxxxx'     PASSWD='xxxxxx'     FILE="new.c"     ftp -inv $HOST <<END_SCRIPT     quote USER $USER     quote PASS $PASSWD     cd $ (HowTos)