-----多个文件-----
#!/bin/bash ftp -n<
----单个文件-----
#!/bin/bash ftp -n<
---脚本---
#!/bin/bash for LOGPATH in `/bin/cat /fs01/scripts/AMS_LogDir.txt`doif [ ! -d ${LOGPATH} ] && [ ${LOGPATH:0:1} != "#" ];thenecho "${LOGPATH} This directory does not exist.Please check it!"exit 0fidonefor UP_LOGPATH in `grep -v "^#" /fs01/scripts/AMS_LogDir.txt`doLOGFILE=`/bin/ls -l ${UP_LOGPATH}|tail -1|awk '{print $NF}'`ftp -A -n<