08 2015 档案
摘要:man find发现 花括号要加 '' find ${LOG_BASE_DIR}$dir/ -type f -mtime +${KEEP_DAYS} -name ${LOG_REG} -exec rm -f '{}' \;
阅读全文
摘要:#! /bin/bash#Source function library. . /etc/init.d/functions#Check that networking is up.. /etc/sysconfig/networkif [ "$NETWORKING" = "no" ]then ...
阅读全文
摘要:alter add命令用来增加表的字段。alter add命令格式:alter table 表名 add字段 类型 其他;例如,在表MyClass中添加了一个字段passtest,类型为int(4),默认值为0: mysql> alter table MyClass add passtest i...
阅读全文
摘要:log_format pre_search '$http_x_forwarded_for $remote_addr $remote_user [$time_local] $request_time_usec ' '"$request_method $request_uri" $hos...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:function html_encode(str) { var s = ""; if (str.length == 0) return ""; s = str.replace(/&/g, "&"); s = s.replace(//g, ">"); ...
阅读全文