1.正则表达式: grep -E [a-z]\{10\} students 2.排序文件: sort [options][filename-list] 注:字段之间以空格或TAB字符分开 3.查找文件: find命令使用递归的方式搜索文件和目录 whereis命令搜索系统中是否含有我们指定的命令或文 ...
分类:
其他好文 时间:
2016-10-23 11:29:55
阅读次数:
147
Question Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You m ...
分类:
其他好文 时间:
2016-10-23 07:50:32
阅读次数:
271
Problem: Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the f ...
分类:
其他好文 时间:
2016-10-23 07:37:00
阅读次数:
187
Problem: Given an array of integers, every element appears twice except for one. Find that single one. Your algorithm should have a linear runtime com ...
分类:
其他好文 时间:
2016-10-23 07:36:50
阅读次数:
149
find命令简介:实时、精确、支持众多查找标准、遍历指定目录中的所有文件完成查找,速度慢;1.命令格式:find[-H][-L][-P][path...][expression]2.命令功能:find查找路径查找标准查找到以后的处理运作查找路径:默认为当前目录查找标准:默认为指定路径下的所有文件处理运作..
分类:
系统相关 时间:
2016-10-22 21:36:19
阅读次数:
331
public class MainActivity extends Activity { Button bt; Context context; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate ...
分类:
其他好文 时间:
2016-10-22 17:17:14
阅读次数:
115
Given an integer array of size n, find all elements that appear more than ? n/3 ? times. The algorithm should run in linear time and in O(1) space. Hi ...
分类:
其他好文 时间:
2016-10-22 14:07:12
阅读次数:
143
?—> option|alt ?—>shift ?—>control ?—>command ?—>esc ↑↓←→ Code ?—> option|alt ?—>shift ?—>control ?—>command ?—>esc ↑↓←→ Code alt+F7:Find usage alt+co ...
分类:
移动开发 时间:
2016-10-22 07:15:13
阅读次数:
191
8 00 * * * * cd /tmp; find ./ -mmin +1200 -exec rm -rf {} \; 9 00 * * * * cd /home/work/tmp; find ./ -mmin +1200 -exec rm -rf {} \; 10 22 * * * source ...
分类:
其他好文 时间:
2016-10-22 07:07:02
阅读次数:
182
mongodb # 类似于sql中的in或者or操作 mulites field query: db.cool.find({$or:[{field1:’val’},{‘field2’:’val’}…]}) # 类似于sql中的like操作 db.coo.find(‘name’: /m/) == sq ...
分类:
数据库 时间:
2016-10-21 23:57:12
阅读次数:
405