摘要:
1、写死要替换的内容 __Author__ = "Devin" f1 = open("song",'r',encoding='utf-8') f2 = open("song.bak",'w',encoding='utf-8') for line in f1: if "寻找一个我属于的地方" in l 阅读全文
摘要:
1、创建lucy用户,查看/etc/hosts内容 #!/usr/bin/expect set ip [lindex $argv 0] set user root set password redhat set timeout 5 spawn ssh $user@$ip expect "yes/no 阅读全文