QUOTE:原帖由 huakaibird 于 2006-10-15 14:56 发表
我在脚本中使用lftp,然后要进入某个日期的文件夹,这个日期文件夹是本月的文件夹,譬如200610,下月就是200611了,在lftp中能实现吗?
current_month_date=$(date +%Y%m)
next_month_date=$(date +%Y%m -d "next month")
lftp -e "cd /$current_month_date ; cd /$next_month_date" localhost
复制代码
==