07 2018 档案

摘要:[root@localhost test]# pwd /data/soft/test [root@localhost test]# ls 10.txt 1.txt 2.tx 2.txt 3.txt 4.txt 5.txt 6.txt 7.txt 8.txt 9.txt 脚本内容: dir="/data/soft/test/*" for i in $dir;do b=... 阅读全文
posted @ 2018-07-13 15:51 lixinliang 阅读(171) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash function change_ap { ( s=`stty -g`; str=$"\n" sstr=$(echo -e $str) stty raw -echo; sleep 2; echo "xxxx"; sleep 2; echo "xxxxx"; sleep 2; echo "system-view"; sleep ... 阅读全文
posted @ 2018-07-12 10:53 lixinliang 阅读(2047) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash Ip_addr=`cat /etc/dnsrecord.txt |awk '{print $1}' |head -1` Check_dns_url(){ grep $1 /etc/dnsrecord.txt >/dev/null if [ $? -ne 0 ];then echo "${Ip_addr} $1 " >> /etc/dnsrecord.t... 阅读全文
posted @ 2018-07-11 09:41 lixinliang 阅读(425) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash function cache(){ for i in `curl xxx.fe.xxx.cn/uplist.txt`;do url=`echo $i|awk -F"#" '{print $1}'` md5=`echo $i|awk -F"#" '{print $2}'` file_name=`echo $url|awk -F'\/' '{print $NF}'... 阅读全文
posted @ 2018-07-02 10:51 lixinliang 阅读(857) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示