摘要: #!/bin/bash adduser(){ echo "Copy authz File authz to `date "+%Y%m%d%s"`"&&cp authz authz`date "+%Y%m%d%s"` # more authz | grep ^[A-Z] | grep $DP | sed 's/$/&,'$USER'/... 阅读全文
posted @ 2017-03-08 09:56 青蛙的邻居 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1. 打开文件,创建文件对象。f = open(文件名,模式)最常用的模式有:"r" # 只读“w” # 写入 >>> f2 = open('E:\Dropbox\python\if.py', 'r') or >>> with open(r'E:\Dropbox\python\test.txt.tx 阅读全文
posted @ 2017-02-28 09:02 青蛙的邻居 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 参数练习 阅读全文
posted @ 2017-02-27 11:23 青蛙的邻居 阅读(165) 评论(0) 推荐(0) 编辑
摘要: http://python-docx.readthedocs.io/en/latest/#user-guide 阅读全文
posted @ 2017-02-24 17:56 青蛙的邻居 阅读(369) 评论(0) 推荐(0) 编辑
摘要: ','.join(filter(lambda x: x, a.split(' '))) 阅读全文
posted @ 2017-02-22 15:00 青蛙的邻居 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 效果 日志文件格式 [ERROR] [2017-02-14 11:13:27][cn.com.eju.deal.core.Interceptor.MethodExecutionInterceptor]Method: public java.lang.String cn.com.eju.deal.in 阅读全文
posted @ 2017-02-15 10:10 青蛙的邻居 阅读(209) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash File=user`date +%Y%m%d`.xls Path=/home/wym/ocssql/ AdminMail=XX@XXX Msql=select.sql Muser=admin Mpass=XXX mysql -u$Muser -p$Mpass < $Path$ 阅读全文
posted @ 2017-01-16 14:12 青蛙的邻居 阅读(146) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash while read A B C D; do cat ipmac | grep $B >/dev/null if [ $? = 0 ] then echo "inter $D" echo "des `cat ipmac | grep $B | awk '{print $1}' 阅读全文
posted @ 2017-01-16 14:06 青蛙的邻居 阅读(163) 评论(0) 推荐(0) 编辑