我想编写bash脚本以递归列出sftp上的所有文件(带有完整路径),然后在本地与路径交互(因此只需要sftp就可以获取路径).不幸的是,"ls -R"在那里不起作用.
任何想法如何用一些基本的POC做到这一点将非常感激
Available commands:
bye Quit sftp
cd path Change remote directory to 'path'
chgrp grp path Change group of file 'path' to 'grp'
chmod mode path Change permissions of file 'path' to 'mode'
chown own path Change owner of file 'path' to 'own'
df [-hi] [path] Display statistics for current directory or
filesystem containing 'path'
exit Quit sftp
get [-Ppr] remote [local] Download file
help Display this help text
lcd path Change local directory to 'path'
lls [ls-options …Run Code Online (Sandbox Code Playgroud)