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=...
阅读全文
摘要:#!/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 ...
阅读全文
摘要:#!/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...
阅读全文
摘要:#!/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}'...
阅读全文