Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using FTPS to transfer some files from one remote server to another. Now would I like to move files locally on one server, from one folder to another. More concrete: after moving the files from [remote server 1] to [remote server 2] I want to move all the files with extension .csv to the folder done. I found the 'rename' command but there is no 'rename all' function like:

rename *.csv ../done/*.csv

Thanks in advance!

share|improve this question
Do you have an SSH access to the machine? That would make it much easier. – ℝaphink Dec 28 '09 at 10:59
yes sure, sort of! It's a win2008 machine which I have remote access to – laurens Dec 28 '09 at 11:13

Using * as a wildcard like you're doing is known as globbing. Globbing is often only available for local files through FTP, not remote ones. Some clients do glob remote FTP commands but, generally only the m* ones (mdelete, mget etc.)

Have a look at your clients glob command.

Also, globbing the way you asked in the question won't work, it would be:

rename *.csv ../done

I have a feeling you'll need to script it or do it manually because FTP is suited to that, not hand moving stuff around.

share|improve this answer
I'd hoped... But this command failed – laurens Dec 28 '09 at 11:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.