截取字段 进行数据库分组
SELECT `ts_time`,count(`ts_time`) FROM `inform_analysis` where `ts_time`>='2010-01-01' and `ts_time`<='2010-02-23' group by substring(`ts_time`,1,10)
比如查找当前目录下面所有的php文件里面的内容
find ./ -name "*.php" | xargs grep '要查找的内容'
如果需要查找的内容包含特殊符号,比如$等等,grep要加参数
find ./ -name "*.php" | xargs grep -F '要查找的内容'