sort作用:将文本排序显示常用选项:-u去除重复行-r降序(默认升序)-n以数值来排序-t指定分隔符-kn以第n列来排序实例:[root@jacken~]#cathi
a:2
b:3
b:1
b:1
c:4
d:5
[root@jacken~]#sort-uhi
a:2
b:1
b:3
c:4
d:5
[root@jacken~]#sort-rhi
d:5
c:4
b:3
b:1
b:1
a:2
[root@jack..
分类:
系统相关 时间:
2015-04-19 22:58:49
阅读次数:
366
3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c =
0? Find all unique triplets in the array which gives the sum of zero.
Note:
Elements in a tr...
分类:
其他好文 时间:
2015-04-19 16:13:49
阅读次数:
130
ftrace 的作用是帮助开发人员了解 Linux 内核的运行时行为,以便进行故障调试或性能分析。最早 ftrace 是一个 function tracer,仅能够记录内核的函数调用流程。如今 ftrace 已经成为一个 framework,采用 plugin 的方式支持开发人员添加更多种类的 tr...
分类:
其他好文 时间:
2015-04-19 14:32:36
阅读次数:
168
wc计算文件的行数,单词数,字节数#wc/etc/passwd40591800/etc/passwd#wc-l/etc/passwd40/etc/passwd#wc-w/etc/passwd59/etc/passwd#wc-c/etc/passwd1800/etc/passwdgrep正则介绍^行首$行尾v取反n显示行号c统计行数diff对比两文件的差异d删除了(delete)-a新增了(append)-c改变了(..
分类:
系统相关 时间:
2015-04-19 06:40:39
阅读次数:
279
awk简介:awk是贝尔实验室1977年搞出来的文本神器,对于熟悉使用linux的朋友们来说,awk无疑是强大的。说到awk,就不得不提到一本书。《theawkprogramminglanguage》据说这本书要将近1k呢。好吧,我没看过。其实linux下有很多强大的文本编辑工具包括(sed|nl|ed|tr|cut|fold|st..
分类:
其他好文 时间:
2015-04-17 22:28:58
阅读次数:
239
作为初学者,一开始就接触div+css ,所以说实话,我并不怎么喜欢table布局,一般逃避。先上这次的效果图:看到这个图,第一次用table布局没实现,原因是给tr加下边框失效。当时没找到原因,以前没用过table布局。今天重新翻出来用table布局实现dom结构是:div>table>cap.....
分类:
其他好文 时间:
2015-04-17 19:55:19
阅读次数:
98
CREATE OR REPLACE TRIGGER TR_CGD1 BEFORE UPDATE OR INSERT OR DELETE ON BB_MJ_CGD1_TB FOR EACH ROWDECLARE V_COUNT NUMBER;BEGIN CASE WHEN UPDATIN...
分类:
其他好文 时间:
2015-04-17 15:31:55
阅读次数:
313
tr命令可以用来做简单的字符替换与删除,常用的有-d, -s选项。它的替换与删除是按单个字符来的假设有以下文本:Read from the file words.txt and output the word frequency list to stdout.USE CASE 1:将文本全部转化为大...
分类:
其他好文 时间:
2015-04-17 15:23:48
阅读次数:
159
/// /// 获取当前时间戳 /// /// 为真时获取10位时间戳,为假时获取13位时间戳. /// public static string getTimeStamp(bool bflag = tr...
分类:
其他好文 时间:
2015-04-17 13:01:09
阅读次数:
111
1 package java_test; 2 3 public class labelWhile { 4 5 public static void main(String[] args) { 6 int i = 0; 7 outer: while (tr...
分类:
编程语言 时间:
2015-04-17 01:11:41
阅读次数:
199