shell/python
3 articles
sed 用法总结
2016-12-12
1.打印文件指定行 [root@radius ~]# sed -n '3p' /etc/passwd daemon:x:2:2:daemon:/sbin:/sbin/nologin [root@radius ~]# sed -n '3,5p' /etc/passwd daemon:x:2:2:daemon:/sbin:/sbin/nologin ad
python 列表复制
2016-12-12
① >>> names=['Mr.kevin','Mr.reboot','Mr.target'] >>> a=names[:] >>> a[0]='kevinye' >>> a ['kevinye', 'Mr.reboot', 'Mr.target'] >>> name
zabbix email monitor
2016-10-25
chown -R zabbix.zabbix /usr/local/zabbix/share/zabbix/alertscripts/sendmail_zabbix.py 指定脚本的位置 [root@mysql1 etc]# cat zabbix_server.conf | grep alertscripts AlertScriptsPath=/usr/l