ssh otherhost << EOF
ls some_folder;
./someaction.sh 'some params'
pwd
./some_other_action 'other params'
EOF
參考鏈接
- https://stackoverflow.com/a/4412338/4884227
ssh otherhost << EOF
ls some_folder;
./someaction.sh 'some params'
pwd
./some_other_action 'other params'
EOF
需求 將所有子目錄裏的txt文件移動到當前目錄。 D:\INSTALLER\2 │ 321.txt │ └─新建文件夾 │ 1.txt │ └─新建文件夾 fds.txt 答案
向前兼容和向後兼容 —— 由於中英文化差異導致意義混淆。 向前兼容(Forwards Compatibility): 向上兼容 Forward有