How do I rename multiple files in SFTP?

Thành Đạt

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

Tìm kiếm

Back
Top