It depends what the default FTP client is for your distribution. For instance, OpenBSD's ftp client allows for:
Code:
$ ftp -o Site.1.LocalFile.${Today} ftp://user:password@host/remoteFile
To find out whether your FTP client supports it, type
and read the SYNOPSIS section (at least).
If the default FTP client isn't sufficient, there are some extremely flexible and powerful file retrievers such as
curl and
wget that can easily do what you describe (and a lot more).