move remote files with different extension
Hi All, I've build this simple script to get only .pdf from a remote SFTP, then move the pdf's and .xml to the remote directory "scaricati".
I've try with mv *.* /out/scaricati/*.* but isn't working, I've try splitting the two mv command and it's working.
Isn't important, but is it possible to move all files extension with one command?
Thanks in advance
I've try with mv *.* /out/scaricati/*.* but isn't working, I've try splitting the two mv command and it's working.
Isn't important, but is it possible to move all files extension with one command?
Thanks in advance
open sftp://xxx:xxx@xxx:8022/ -hostkey="xxxxxxx=" cd /out lcd "E:\report" get *.pdf -filemask=/scaricati/ mv *.pdf /out/scaricati/*.pdf mv *.xml /out/scaricati/*.xml exit