ftp help

Dear All
I am using ftp <IP> to get some files from another server. after logging in using ftp,I have to check the following ...

  1. Check if file's exist
    2.If exist how many files,count(grep using some patterns) .
    at last get it.

i want to do this using ftp ,as I am not having telnet/ssh access.

Thanx
TKB

which FTP you are using ? The standard FTP ? If yes, "man ftp" for more options.
I suggest that you use "lftp" client, it has more features.