用FTP从远端机取多个文件的shell脚本
#!/bin/bash
ftp -n ip << !
user username passwd
lcd localdir_for_put
prompt
cd r_dir_for_get
mget *
by
!
原文转自:http://www.ltesting.net