I would like to automate following manual tasks:
A list of files: a.csv
, b.csv
, c.csv
in a folder named files
a_1.csv
, b_1.csv
, c_1.csv
a.csv
, b.csv
, c.csv
.What did I try so far:
Could you please give me some ideas to get these tasks done? I did try research a lot but no success.
This is trivial to do, if you use a client that supports masks to modify file name as the file is uploaded.
For example with WinSCP, you can do:
put C:\local\path\*.* /remote/path/*_1.csv
It will upload all files, storing them with _1
suffix on the server. And you do not even need to rename the local files.
For a start, see guide to automating file transfer with WinSCP.
(I'm the author of WinSCP)