linux的vim命令介绍和其他命令

http://www.cnblogs.com/jony413/articles/2445230.html

http://zhidao.baidu.com/question/150224495.html&__bd_tkn__=7fbf5323346f9a301559b573e1a633f68a0fd2eb8078338d51fed8133ea5c69d362ad36bb4bcda3b39bb3949f6bbe47087ac3af56e60b1f4e7eb60157959fd309f63adf15b0f03de01252775d437c90f320699077f58be85a14c3f0b7d2c305cbf64793648b3acac9a0efbaccbdc8c09cb342bf14dab

http://www.cnblogs.com/BiffoLee/archive/2011/11/20/2256560.html

/string  向前搜索指定字符串
?string  向后搜索指定字符串
n           搜索指定字符串的下一个出现位置
N          搜索指定字符串的上一个出现位置
:%s/old/new/g     全文替换指定字符串 

grep catainout.log | i exception
某个时间段的日志。

linux的sed命令

http://www.cnblogs.com/dong008259/archive/2011/12/07/2279897.html
http://www.iteye.com/topic/587673
tomcat_pla_ror]$ sed -n '/Oct 23, 2013 10:08:51/,/Oct 23, 2013 10:21:24/p' catalina.log

这个命令用于查找某个时间段的日志。
$ sed -n '/test/,/check/p' example-----所有在模板test和check所确定的范围内的行都被打印。




linux创建多个文件

touch {2014-06-2412-00-00_sign_error.log,2014-06-2412-40-00_sign_error.log,2014-06-2413-00-00_sign_error.log}

posted @ 2012-11-04 22:22  唾手可得的树  阅读(224)  评论(0编辑  收藏  举报