摘要:
#!/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'/... 阅读全文
摘要:
1. 打开文件,创建文件对象。f = open(文件名,模式)最常用的模式有:"r" # 只读“w” # 写入 >>> f2 = open('E:\Dropbox\python\if.py', 'r') or >>> with open(r'E:\Dropbox\python\test.txt.tx 阅读全文
摘要:
http://python-docx.readthedocs.io/en/latest/#user-guide 阅读全文
摘要:
','.join(filter(lambda x: x, a.split(' '))) 阅读全文
摘要:
效果 日志文件格式 [ERROR] [2017-02-14 11:13:27][cn.com.eju.deal.core.Interceptor.MethodExecutionInterceptor]Method: public java.lang.String cn.com.eju.deal.in 阅读全文
摘要:
#!/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$ 阅读全文
摘要:
#!/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}' 阅读全文