How can I move/rename with a wildcard?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have an app which needs to connect to an FTP site, copy everything i

the inbox to the local machine, then move it all to the archive folde
on the FTP site.  I switched from PuTTY to OpenSSH so I could use th
*mget* command.  I then tried to *rename* all files in inbox to th
archive folder with a wildcard, but it was not accepted.

Is there a wildcard equivalent to *rename*, like *mget* is to *get*?

Can I use a wildcard copy followed by a wilcard delete?  I don't wan
to do it that way as it increases the chance of losing a file throug

I am generating the script as a batch, so I don't know what files ar
going to be in the inbox and so can't generate a list of renames fo
individual files.

Can anyone help me?

Posted via
View this thread:

Re: How can I move/rename with a wildcard?

Quoted text here. Click to load it

No; the current OpenSSH sftp program does not have this feature (and,
oddly, neither mput nor mget is documented...).

  Richard Silverman

Site Timeline