08 2015 档案

摘要:man find发现 花括号要加 '' find ${LOG_BASE_DIR}$dir/ -type f -mtime +${KEEP_DAYS} -name ${LOG_REG} -exec rm -f '{}' \; 阅读全文
posted @ 2015-08-31 13:16 hao.ma 阅读(350) 评论(0) 推荐(0)
摘要:#! /bin/bash#Source function library. . /etc/init.d/functions#Check that networking is up.. /etc/sysconfig/networkif [ "$NETWORKING" = "no" ]then ... 阅读全文
posted @ 2015-08-27 19:55 hao.ma 阅读(177) 评论(0) 推荐(0)
摘要:alter add命令用来增加表的字段。alter add命令格式:alter table 表名 add字段 类型 其他;例如,在表MyClass中添加了一个字段passtest,类型为int(4),默认值为0: mysql> alter table MyClass add passtest i... 阅读全文
posted @ 2015-08-26 16:53 hao.ma 阅读(132) 评论(0) 推荐(0)
摘要:log_format pre_search '$http_x_forwarded_for $remote_addr $remote_user [$time_local] $request_time_usec ' '"$request_method $request_uri" $hos... 阅读全文
posted @ 2015-08-17 20:30 hao.ma 阅读(177) 评论(0) 推荐(0)
摘要:Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the differe... 阅读全文
posted @ 2015-08-13 23:55 hao.ma 阅读(207) 评论(0) 推荐(0)
摘要:Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr... 阅读全文
posted @ 2015-08-13 23:54 hao.ma 阅读(203) 评论(0) 推荐(0)
摘要:function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); ... 阅读全文
posted @ 2015-08-02 16:09 hao.ma 阅读(258) 评论(0) 推荐(0)

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