2014年5月15日

摘要: sed '{/A/b there;s/A/AA/;:there;s/B/BB/}' 1 阅读全文
posted @ 2014-05-15 13:02 终极记忆 阅读(232) 评论(0) 推荐(0)
摘要: set enc=utf-8centos修改 /etc/vimrcubuntu修改:/etc/vim/vimrc 阅读全文
posted @ 2014-05-15 09:32 终极记忆 阅读(130) 评论(0) 推荐(0)

2014年5月14日

摘要: #!/usr/bin/env pythonfilename = raw_input('Enter file nameL: ')fobj = open(filename,'r')for i in fobj: print i fobj.close() 阅读全文
posted @ 2014-05-14 15:38 终极记忆 阅读(155) 评论(0) 推荐(0)
摘要: #!/usr/bin/env pythonfilename = ''while 1: filename = raw_input("Please input filename: ") if filename == 'q': break try: f = open(filename,"... 阅读全文
posted @ 2014-05-14 14:34 终极记忆 阅读(1617) 评论(0) 推荐(0)
摘要: #!/usr/bin/env pythonimport timeimport stringfrom string import lowercasefrom time import sleepa = 1for k in lowercase: print a,k sleep(1) a=a+1 阅读全文
posted @ 2014-05-14 13:46 终极记忆 阅读(115) 评论(0) 推荐(0)

2014年5月12日

摘要: yum install dnsmasq -ycp/etc/resolv.conf/etc/resolv.dnsmasq.confvi/etc/dnsmasq.confresolv-file=/etc/resolv.dnsmasq.confconf-dir=/etc/dnsmasq.dvi/etc/d... 阅读全文
posted @ 2014-05-12 16:31 终极记忆 阅读(223) 评论(0) 推荐(0)

导航