Rename files uploaded with filemask

Advertisement

frankm
Joined:
Posts:
1
Location:
Bayern

Rename files uploaded with filemask

Hello Martin,
I've got a problem renamimg files in the remote directory.
My batch-script first puts files with *.xml to a remote directory with a . (dot) at the beginning. The put-command is using filemask *.xml.
For example:
put local file: 1811161000.xml remote file: .811161000.xml

Now I need to rename it back to the original name, means mv .811161000.xml to 1811161000.xml
How can it be done using wildcards ?
Thanks and regards,
Frank

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,454
Location:
Prague, Czechia

Re: Rename files uploaded with filemask

A wildcard (actually an operation mask) cannot be used to remove a leading part of a filename.

Actually you cannot even add a leading part using an operation mask. So I wonder are you actually uploading the files in the first place. Show us your script.

Reply with quote

Advertisement

You can post new topics in this forum