I have a terribly simple script which uses the get command to copy all files with a txt.gz extension that are in each of the directories of the remote machine (that start with a numeric), into a local directory.
option include "[1-9]*/; *.txt.gz"
get * C:\feeds\companyA
remote machine directory & name local machine directory & name
This works great. However, what I would like is for the local file names to be prefixed with a string,
I have tried many different ways, but all end up either chopping off some of the numbers in the filename, or creating subdirectories I don't need.
Obviously, I could just do this with a shell script, but I would love to do it in this one command. Is this possible?
I can provide examples of what I have attempted if it would help.