一, find 命令find 命令有三部分构成 1,你要搜索的目录(. 当前目录, ~家目录, /根目录)。 2,你的搜索条件。 3,搜索到后要执行的动作。常用命令:1, find . -name my*在当前目录下搜索,名字以my开头的文件, 然后输出到标准输出。 my* 和 ‘my*’一样,加不...
分类:
其他好文 时间:
2014-07-23 22:20:27
阅读次数:
216
1.背景刚到一家公司需要写一个实时分析tshark捕捉到的数据,tshark一直往文本里面写数据,写一个程序要实时获取到添加的数据并进行分析处理最后入库。此时思绪狂飞,想了一些比较挫的方法。本人想到的方法:1.每隔一定时间去查看下文件的mtime,如果有改动则读取数据,并记录读..
分类:
编程语言 时间:
2014-07-23 21:20:06
阅读次数:
361
Description:You are given a string,S, and a list of words,L, that are all of the same length. Find all starting indices of substring(s) in S that is a...
分类:
其他好文 时间:
2014-07-23 20:35:05
阅读次数:
246
由于centos7 自带的php版本为5.4的版本,代码不支持,降级到5.3 一路坎坷。只能以笔记记录下来。 下载,编译。报错如下: ?configure?error?:?Cannot?find?libmysqlclient?under?/usr. 首先从mysql.com 上...
分类:
Web程序 时间:
2014-07-23 17:37:11
阅读次数:
358
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters fo...
分类:
其他好文 时间:
2014-07-23 16:19:41
阅读次数:
234
原始题目例如以下,意为寻找数组和最大的子串,返回这个最大和就可以。Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, ...
分类:
其他好文 时间:
2014-07-23 15:45:59
阅读次数:
246
近日有个项目需要显示周几,一开始是这样写的//日期var dateObj = new Date().find('.sign_date').html((dateObj.getMonth() + 1) + '/' + dateObj.getDate()).end().find('.sign_week')...
分类:
其他好文 时间:
2014-07-23 15:22:46
阅读次数:
185
GCDInput:Standard InputOutput:Standard OutputGiven the value of N, you will have to find the value of G. The definition of G is given below:HereGCD(i,...
分类:
其他好文 时间:
2014-07-23 15:13:16
阅读次数:
246
Who's in the Middle
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 31449
Accepted: 18269
Description
FJ is surveying his herd to find the most average cow...
分类:
其他好文 时间:
2014-07-23 13:08:26
阅读次数:
221
# -*- conding:utf-8-*-import subprocessdef getpid_windows(process_name): """利用cmd_str = tasklist|find /i "xdict.exe" 来查找windows平台的进程id""" cmd_line = '...
分类:
其他好文 时间:
2014-07-23 12:53:36
阅读次数:
242