10 2016 档案

摘要:def info(object,spacing=10,collapse=1): """Print methods and doc strings. Takes modules,class,list,dictionary,or string.""" methodList = [method for m 阅读全文
posted @ 2016-10-21 11:01 思凡念真 阅读(195) 评论(0) 推荐(0) 编辑
摘要:def buildConnectionString(params): """Build a connection string from a dictionary Returns string. """ return ";".join(["%s=%s" % (k, v) for k, v in pa 阅读全文
posted @ 2016-10-21 10:59 思凡念真 阅读(140) 评论(0) 推荐(0) 编辑
摘要:#!/bin/bash#author:zhongyulin#crteate-time:2016-10-20 netstat -lnpt|grep -v grep>/tmp/script/netstat_status.txtsed -i '1,2d' /tmp/script/netstat_statu 阅读全文
posted @ 2016-10-20 14:59 思凡念真 阅读(2289) 评论(0) 推荐(0) 编辑
摘要:写法一: #!/bin/bashwhile read linedo echo $linedone < file(待读取的文件) 写法二: #!/bin/bashcat file(待读取的文件) | while read linedo echo $linedone 写法三: for line in ` 阅读全文
posted @ 2016-10-20 14:58 思凡念真 阅读(5240) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示