发布时间:2013-01-24 17:10:36
python 以逗号分割,忽略引号内的逗号加posix=True 和不加posix=True 有区别前两个是加和不加posix=True的对比,最后一个例子是以空格分割的语句的例子lex.quotes = '"' 去掉效果一样import shlexstr=shlex.shlex("ab,'cdsfd,sfsd',ewewq,5654",posix=True)str.whitespace=','str.whitesapce_s.........【阅读全文】
发布时间:2013-01-11 10:06:11
在日志中显示硬盘有坏扇区tail /var/log/messages Mar 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Currently unreadable (pending) sectors Mar 1 09:42:55 c1g smartd[1848]: Device: /dev/hda, 2 Offline uncorrectable sectors dmesg中也有错误信息dmesg ide: failed opcode was: unknown hda: no DRQ after issuing WRITE ide0: ......【阅读全文】
发布时间:2012-12-26 10:01:29
点击(此处)折叠或打开 #!/bin/bash FILE='20121224_Finaldatapm.csv' MYSQL='/usr/local/mysql/bin/mysql' USER='root' PASSWD='root' DB='ITIMS' while read i do eval $(echo $i|awk -F',' '{ printf("a=%s\nb=%d\nc=%d\nd=%d\ne=%d\nf=%s",$1,$2,$3,$4,$5,$6); }') &n......【阅读全文】