mput question

I want to mput a file without extension, and while doing the mput i want to include the .txt as an extension to the file name. How can i do that?

There are no extensions in Unix filenames; the suffix, .txt, is as much part of the filename as the part before the period.

The only way to do it without including the suffix is to use a wildcard:

mput xxxx*

I don't think you can achieve this without lateral thought.

One option is to copy each source files to .txt extension before starting the ftp session and issuing the "mput".

Another option is to generate the code to use multiple "put" statements which specify each source and destination filename instead of issuing a single "mput". This is my preferred method. Remember that if you want an ascii transfer to specify the "ascii" command to ftp.