I would like to create a script that moves files from a remote 1directory to another remote 2directory, but only those files in the 1directory that are the same as those in a local 3directory.
Thus:
- if the file in folder1 (remote) is equal to folder3 (local)
- then move that file from folder1 to folder2
I would like to create a script that moves files from a remote 1directory to another remote 2directory, but only those files in the 1directory that are the same as those in a local 3directory.
Thus:
- if the file in folder1 (remote) is equal to folder3 (local)
- then move that file from folder1 to folder2
now I don't understand what function I should use, and how to set it up, to do this "check" on the remote and local folder.