SED是一个很好的文本处理命令,主要以行为单位进行处理,并且可以替换,删除,新增,选取等工作.sed[-nefri]‘command‘输入文本-n(silent)使用安静模式。在一般的SED用法中来自STDIN的资料一般都会直接显示在屏幕上,但如果加上安静模式(-n)则只有经过被处理后的数据才会显示..
分类:
其他好文 时间:
2014-09-19 19:43:36
阅读次数:
201
Any shell script you run has access to (inherits) the environment variables accessible to its parent shell. In addition, any arguments you type after the script name on the shell command line are p...
分类:
其他好文 时间:
2014-09-19 15:49:26
阅读次数:
282
1、类SQL PLUS窗口:File->New->Command Window,这个类似于oracle的客户端工具sql plus,但比它好用多了。
2、设置关键字自动大写:Tools->Preferences->Editor,将Keyword case选择Uppercase。这样在窗口中输入sql语句时,关键字会自动大写,而其它都是小写。这样阅读代码比较容易,且保持良好得编码风格,同理,在...
分类:
数据库 时间:
2014-09-19 13:55:25
阅读次数:
324
1. 区别 builtin command, external command,bash script。用builtin command(hash、type、command),而不是which命令(external command)查看某个命令是安装了(跟PATH变量相关):hash foo >/d...
分类:
其他好文 时间:
2014-09-19 13:39:35
阅读次数:
220
第二章 1.内容类型:“text/html”。DOCTYPE声明:。指定字符编码: 2.不允许写结束标记的元素有:area,base,br,col,command,embed,hr,img,input,keygen,link,meta,param,source,track,wbr 可以省略结...
分类:
Web程序 时间:
2014-09-19 13:29:15
阅读次数:
303
--查看某一个端口:netstat-lnp|grep80查看占用端口:netstat-lnp或者netstat-tnlup--设置防火墙:开启80端口的访问#/sbin/iptables-IINPUT-ptcp--dport80-jACCEPT#/etc/rc.d/init.d/iptablessave#/etc/init.d/iptablesrestart--查看防火墙#/etc/init.d/iptablesstatus--tomcat..
分类:
其他好文 时间:
2014-09-19 12:15:45
阅读次数:
239
tengine.taobao.org/book/chapter_03.html程序解析:1,核心是定义三个结构体,分别是a,ngx_command_t(模块的配置结构):由于定义了自己的配置结构体typedef struct{ngx_str_t hello_string;ngx_int_t hell...
分类:
其他好文 时间:
2014-09-19 11:39:55
阅读次数:
304
Ctrl + a - Jump to the start of the lineCtrl + b - Move back a charCtrl + c - Terminate the command Ctrl + d - Delete from under the cursorCtrl + e - ...
分类:
其他好文 时间:
2014-09-19 11:32:05
阅读次数:
159
有时候在java代码中会调用一些外部程序,比如SwfTools来转换swf、ffmpeg来转换视频等。如果你的代码这样写:Runtime.getRuntime().exec(command),会发现程序一下就执行完毕,而在命令行里要执行一会,是因为java没有等待外部程序的执行完毕,此时就需要使用阻...
分类:
编程语言 时间:
2014-09-19 09:55:25
阅读次数:
241
In the recent days, since the overwork made me exhaused, on arrival to home I will go to bed, which leads to loss of blogs that should have been written in the past days.
Now I make a summay to all...
分类:
数据库 时间:
2014-09-19 02:20:04
阅读次数:
323