1、cut: 命令选取 cut -d’分隔字符’ -f fields
-d :后面接分隔字符,用-f一起使用
-f: 依据-d的分隔字符将一段信息切割成为数段
-c:以字符的单位取出固定字符区间
Eg :echo $PATH | cut -d‘:’-f 5
以“;”作为分隔,取第五段字符
2、grep :上面cut命令是在一行信息当中取出某部分,而g...
分类:
系统相关 时间:
2015-06-11 14:37:13
阅读次数:
132
字符x 字符 x\\ 反斜线字符\0n 带有八进制值 0 的字符 n (0 ?@[\]^_`{|}~\p{Graph} 可见字符:[\p{Alnum}\p{Punct}]\p{Print} 可打印字符:[\p{Graph}\x20]\p{Blank} 空格或制表符...
分类:
其他好文 时间:
2015-06-10 22:27:54
阅读次数:
161
代码第一版 :#include using namespace std;int max(int a,int b){ if(a>=b)return a; else return b;}int cut_rod(int *p,int n){ int q=NULL; if(n==0)...
分类:
其他好文 时间:
2015-06-10 18:56:12
阅读次数:
111
ip=ip add|grep eth0|grep -i inet|awk '{print $2}'|cut -d '/' -f 1
cd /data
tar -zvcf `echo $ip`_`date +%Y%m%d`_abc.tar.gz --exclude=/abc/soft/ --exclude=*.svn /abc
sz $ip_root.tar.gz
以上打...
分类:
其他好文 时间:
2015-06-10 14:11:23
阅读次数:
110
Filter 是DirectShow中最基本的概念。DirectShow使用Filter Graph来管理Filter(管理者叫做Filter Graph Manager)。Filter Graph是Filter的“容器“,而Filter是Filter Graph中的最小功能模块。Filter一般由...
分类:
其他好文 时间:
2015-06-09 21:36:20
阅读次数:
140
An undirected graph is called k-regular, if the degrees of all its vertices
are equal k. An edge of a connected graph is called a bridge, if after
removing it the graph is being split into two con...
分类:
其他好文 时间:
2015-06-09 17:16:47
阅读次数:
171
Description
Given a sequence, {A1, A2, ..., An} which is guaranteed A1 > A2, ..., An, you are to cut it into three sub-sequences and reverse them
separately to form a new one which is the smalle...
分类:
编程语言 时间:
2015-06-08 21:40:56
阅读次数:
290
>>ContextMenu是android的context menu上下文菜单,选择某项VIEW后长按menu键,就会显示出来。比如EditeText就可以通过长按来弹出拥有“cut”,"copy","paste"等项的ContextMenu。实现ContextMenu,一般要用到以下三个方法:(1...
分类:
移动开发 时间:
2015-06-08 14:46:18
阅读次数:
158
这本书应该八年前学习,这是一个虚度年华的悲剧。希望你好好学习,并做好笔记。《DirectShow开发指南》第一章主要讲述了以下要点:(1)DirectShow组成 我这里要指出两点: 一是Filter管理器,即Filter Graph Manager,它是一个Filter容器,负责创建,销毁所有过滤...
分类:
其他好文 时间:
2015-06-07 17:16:44
阅读次数:
150
正则表达式的特殊符号:[:alnum:] 代表英文大写字母和数字[:alpah:] 代表英文大小写字母[:blank:] 代表空格和TAB[:cntrl:] 键盘上的控制按键:EG: CR,LF,TAB,DEL[:digit:] 代表数字[:graph:] 代表空白符意外的其他[:lower:] 小...
分类:
其他好文 时间:
2015-06-07 01:01:06
阅读次数:
105