学了sed,觉得模式空间和暂存空间比较乱整理一下
sed编辑器逐行处理文件,并将输出结果打印到屏幕上。sed命令将当前处理的行读入模式空间(pattern
space)进行处理,sed在该行上执行完所有命令后就将处理好的行打印到屏幕上(除非之前的命令删除了该行),sed处理完一行就将..
分类:
其他好文 时间:
2014-07-15 12:16:24
阅读次数:
318
主要是运用 df 指令,df是disk filesystem的缩写
其后面还可以加很多有用的tag
df -h...
分类:
系统相关 时间:
2014-07-15 10:25:01
阅读次数:
382
java.lang.OutOfMemoryError: PermGen space解决办法:Eclipse--》window--》Tomcat --》JVM setting --》Append To JVM Parameters --》add 弹出框填写:-Xmx256M -Xms256M -XX:...
分类:
编程语言 时间:
2014-07-14 23:41:54
阅读次数:
322
Overcommits KVM allows for both memory and disk space overcommit. However, hard errors resulting from exceeding available resources will result in gue...
分类:
其他好文 时间:
2014-07-14 23:36:34
阅读次数:
385
How do I insert a space to a NSString.I need to add a space at index 5 into:NString * dir = @"abcdefghijklmno";To get this result:abcde fghijklmnowith...
分类:
其他好文 时间:
2014-07-14 21:12:21
阅读次数:
175
Sort a linked list inO(nlogn) time using constant space complexity.题解:实现一个链表的归并排序即可。主要分为三部分:1.找到中点并返回的函数findMiddle;2.归并函数merge;3.排序函数sortList。数组的findM...
分类:
其他好文 时间:
2014-07-14 20:00:56
阅读次数:
182
(1)Ctrl+Space
说明:内容助理。提供对方法,变量,参数,javadoc等得提示,
应运在多种场合,总之需要提示的时候可先按此快捷键。
注:避免输入法的切换设置与此设置冲突
(2)Ctrl+Shift+Space
说明:变量提示
(3)Ctrl+/
说明:添加/消除//注释,在eclipse2.0中,消除注释为Ctrl+\
(4)Ctrl+Sh...
分类:
系统相关 时间:
2014-07-14 17:41:40
阅读次数:
297
描述
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.
Do not allocate extra space for another array, you must do this in ...
分类:
其他好文 时间:
2014-07-14 13:46:43
阅读次数:
229
Given two sorted integer arrays A and B, merge B into A as one sorted array.
Note:
You may assume that A has enough space (size that is greater or equal to m + n) to hold additional elements from ...
分类:
其他好文 时间:
2014-07-13 17:21:40
阅读次数:
208
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
/**
* Definition for singly-linked list.
* class ListNode {
* int val;
* ...
分类:
其他好文 时间:
2014-07-13 16:32:04
阅读次数:
152