Anant_00
Anant_00

Reputation: 143

Changing file name while FTP files in UNIX

I have some set of files in UNIX

udabpr040_mp_01 
udabpr040_mp_02     

and so on for all 12 months, starting form 01 to 12 i.e. from udabpr040_mp_01 to udabpr040_mp_12.

Now, I want to rename the file while FTP such that only one letter shoud change and entire file remain same.i.e.

  1. udabpr040_mp_01 udabtr040_mp_01
  2. udabpr040_mp_02 udabtr040_mp_02

also , all the files should FTP at once. Something like

mput udabpr040_mp* <newfilename>

Does anyone knows , how to do it?

Upvotes: 0

Views: 910

Answers (1)

Morteza Soltanabadiyan
Morteza Soltanabadiyan

Reputation: 638

this type of work called wildcard . so u must search about ftp wildcard rename as i understant your question . so i found some links . hope be useful .

http://www.networkautomation.com/automate/urc/resources/help/actions/action_FTP_Rename.htm http://jpsoft.com/help/index.htm?ren.htm

Regards

Upvotes: 1

Related Questions