- 博客(5)
- 收藏
- 关注
原创 linux中find查找指定时间段的文件并grep查找内容
find . -type f -newermt '2016-01-01 00:00:00' ! -newermt '2016-02-01 12:00:00' -exec grep aaaa {} \; > tmp.txt
2017-02-06 16:40:48
15639
转载 linux中find常用
点击打开链接find path -option [-print -exec -ok command ] {} \;path: find命令所查找的目录路径。例如用.来表示当前目录,用/来表示系统根目录。 -print: find命令将匹配的文件输出到标准输出。 没有此项则默认为-print。-exec: find命令对匹配的文件执行
2017-02-06 15:11:41
194
转载 解决warning: Clock skew detected. Your build may be incomplete
http://blog.chinaunix.net/uid-20789721-id-470971.html原因:机器系统时间与文件时间不一致解决:find . -type f | xargs -n 5 touchmake cleanmake
2017-02-06 11:21:08
706
原创 mysqlbinlog指令举例
sudo mysqlbinlog --start-datetime='2017-02-04 12:00:00' --stop-datetime='2017-02-04 13:00:00' (-d 库名) mysql-bin.* | grep -A5 PlayerID=101056732 > ~/binlog.tmp补充:grep -A5 显示匹配行及后5行(-B表示前,-C表示前后各)。
2017-02-06 11:13:28
254
原创 python逐行读取文件
file = open("aaa,"r") for line in file: num = int(line.split('\t')[0]) print numfile.close()
2017-02-04 17:55:51
654
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人