centos7使用lftp自动上传文件到ftp
#!/bin/bash today=$(date +%Y%m%d_%H%M%S) file=$today.sql.gz user=rocdk890 passwd=rocdk890 ldir=/data/sqlbak/ rdir=/ ip=47.92.x.x l...
#!/bin/bash today=$(date +%Y%m%d_%H%M%S) file=$today.sql.gz user=rocdk890 passwd=rocdk890 ldir=/data/sqlbak/ rdir=/ ip=47.92.x.x l...
#!/bin/bash file=`find ./ -name "*.txt"` user="root" passwd="rocdk890" database="rocdk890" cat $file | while read line do num1=`echo $line |awk '{print $1}'` num2=`echo $line |awk '{print $2}'` num3=`echo...