How do I rename multiple files in SFTP?
Answer
2 Answers
Answer
2 Answers
- Issue a first SFTP command that does a ls of the directory, and capture its output.
- process that output to generate the list of rename command for each file.
- Issue a second SFTP command with execute that list of rename commands.