Need shell script for ftpying multiple files

Hi All,

I am a beginner for shell programming. I have a requirement to ftp multiple files. Here are the details.

I have around thiry files in one directory, I want a shell script which selects 5 files at a time and does ftp them to another host . After the transfer for first files is complete the script should select the files from 5to10 and do the FTP this is how script should ftp all the files.

Could some body help me how could this be done using shell script.

Thanks in advance for your help!

Regards,
Srikanth